lavc/qdrw: Do not fail decoding valid Quickdraw images.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 20 May 2015 23:05:13 +0000 (01:05 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 20 May 2015 23:05:13 +0000 (01:05 +0200)
libavcodec/qdrw.c

index 0bcf5dc..838f836 100644 (file)
@@ -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);