diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-07-09 20:00:31 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-07-09 20:00:31 +0200 |
commit | ad7c5cba4ee9644a580d8f4a5abd1feda690b1ef (patch) | |
tree | ec7abf94506d4730fd4f8eaa1f03a3f5ab1fa198 /libavformat/rtpenc_jpeg.c | |
parent | 2c7f7a690fb479631af643d24d3f7edb3271232d (diff) | |
download | ffmpeg-ad7c5cba4ee9644a580d8f4a5abd1feda690b1ef.tar.gz |
lavf/rtpenc_jpeg: Do not check the table number when checking precision.
Diffstat (limited to 'libavformat/rtpenc_jpeg.c')
-rw-r--r-- | libavformat/rtpenc_jpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpenc_jpeg.c b/libavformat/rtpenc_jpeg.c index 7ee26c435e..e05e9b5438 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"); |