summaryrefslogtreecommitdiff
path: root/libavcodec/qdrw.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2015-05-07 00:51:28 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2015-05-07 01:21:08 +0200
commitb453e768427969b170820e8e8fe51c84856563b2 (patch)
treee128c12d2cbd6a2dab1e96ff6a542a1498b4cf94 /libavcodec/qdrw.c
parent223a85985393ab6e9a71dab4a8877ed4ac15d82c (diff)
lavc/qdrw: Also support real-world qdraw images.
Diffstat (limited to 'libavcodec/qdrw.c')
-rw-r--r--libavcodec/qdrw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c
index b650ade343..b7a7cf5f1d 100644
--- a/libavcodec/qdrw.c
+++ b/libavcodec/qdrw.c
@@ -124,6 +124,10 @@ static int decode_frame(AVCodecContext *avctx,
int w, h, ret;
bytestream2_init(&gbc, avpkt->data, avpkt->size);
+ if ( avpkt->size >= 552
+ && AV_RB32(&avpkt->data[ 10]) != 0x001102FF
+ && AV_RB32(&avpkt->data[522]) == 0x001102FF)
+ bytestream2_skip(&gbc, 512);
/* smallest PICT header */
if (bytestream2_get_bytes_left(&gbc) < 40) {