aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2015-07-19 22:32:17 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-20 00:27:52 +0200
commit32d8726a31b79dd4e30922d689f3465edc9d00ba (patch)
treec182429759170f51bb27b072f11493a1cb835d40
parentd8d2f934bd008c1db585bd0487d2084689ae8ba5 (diff)
downloadffmpeg-32d8726a31b79dd4e30922d689f3465edc9d00ba.tar.gz
lavf/rtpenc_jpeg: Warn if number of present quantization tables is not two.
-rw-r--r--libavformat/rtpenc_jpeg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rtpenc_jpeg.c b/libavformat/rtpenc_jpeg.c
index e6b3177fe8..a6f2b32df4 100644
--- a/libavformat/rtpenc_jpeg.c
+++ b/libavformat/rtpenc_jpeg.c
@@ -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;