[FFmpeg-cvslog] lavc/qdrw: Do not fail decoding valid Quickdraw images.

Carl Eugen Hoyos git at videolan.org
Thu May 21 02:14:29 CEST 2015


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu May 21 01:05:13 2015 +0200| [209e91cbc4e1c4feaa3b7c2671b864b77874eff8] | committer: Carl Eugen Hoyos

lavc/qdrw: Do not fail decoding valid Quickdraw images.

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

 libavcodec/qdrw.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c
index 0bcf5dc..838f836 100644
--- a/libavcodec/qdrw.c
+++ b/libavcodec/qdrw.c
@@ -153,7 +153,6 @@ static int decode_frame(AVCodecContext *avctx,
 
     bytestream2_init(&gbc, avpkt->data, avpkt->size);
     if (   bytestream2_get_bytes_left(&gbc) >= 552
-           && !check_header(gbc.buffer      , bytestream2_get_bytes_left(&gbc))
            &&  check_header(gbc.buffer + 512, bytestream2_get_bytes_left(&gbc) - 512)
        )
         bytestream2_skip(&gbc, 512);



More information about the ffmpeg-cvslog mailing list