lavf/rtpenc_jpeg: Warn if number of present quantization tables is not two.

This commit is contained in:
Carl Eugen Hoyos 2015-07-19 22:32:17 +02:00 committed by Michael Niedermayer
parent d8d2f934bd
commit 32d8726a31
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@ void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buf, int size)
break;
}
}
if (nb_qtables && nb_qtables != 2)
av_log(s1, AV_LOG_WARNING,
"RFC 2435 suggests two quantization tables, %d provided\n",
nb_qtables);
/* skip JPEG header */
buf += i;