[FFmpeg-cvslog] lavf/rtpenc_jpeg: Do not check the table number when checking precision.

Carl Eugen Hoyos git at videolan.org
Thu Jul 9 20:15:19 CEST 2015


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Jul  9 20:00:31 2015 +0200| [ad7c5cba4ee9644a580d8f4a5abd1feda690b1ef] | committer: Carl Eugen Hoyos

lavf/rtpenc_jpeg: Do not check the table number when checking precision.

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

 libavformat/rtpenc_jpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpenc_jpeg.c b/libavformat/rtpenc_jpeg.c
index 7ee26c4..e05e9b5 100644
--- a/libavformat/rtpenc_jpeg.c
+++ b/libavformat/rtpenc_jpeg.c
@@ -63,7 +63,7 @@ void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buf, int size)
             continue;
 
         if (buf[i + 1] == DQT) {
-            if (buf[i + 4])
+            if (buf[i + 4] & 0xF0)
                 av_log(s1, AV_LOG_WARNING,
                        "Only 8-bit precision is supported.\n");
 



More information about the ffmpeg-cvslog mailing list