[FFmpeg-cvslog] lavf/rtpenc_jpeg: Warn if number of present quantization tables is not two.

Carl Eugen Hoyos git at videolan.org
Mon Jul 20 00:47:15 CEST 2015


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Jul 19 22:32:17 2015 +0200| [32d8726a31b79dd4e30922d689f3465edc9d00ba] | committer: Michael Niedermayer

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=32d8726a31b79dd4e30922d689f3465edc9d00ba
---

 libavformat/rtpenc_jpeg.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/rtpenc_jpeg.c b/libavformat/rtpenc_jpeg.c
index e6b3177..a6f2b32 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;



More information about the ffmpeg-cvslog mailing list