Browse Source

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

tags/n2.7
Carl Eugen Hoyos 10 years ago
parent
commit
209e91cbc4
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavcodec/qdrw.c

+ 0
- 1
libavcodec/qdrw.c View File

@@ -153,7 +153,6 @@ static int decode_frame(AVCodecContext *avctx,


bytestream2_init(&gbc, avpkt->data, avpkt->size); bytestream2_init(&gbc, avpkt->data, avpkt->size);
if ( bytestream2_get_bytes_left(&gbc) >= 552 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) && check_header(gbc.buffer + 512, bytestream2_get_bytes_left(&gbc) - 512)
) )
bytestream2_skip(&gbc, 512); bytestream2_skip(&gbc, 512);


Loading…
Cancel
Save