aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-01-13 20:18:36 +0100
committerPaul B Mahol <onemda@gmail.com>2017-01-13 21:19:17 +0100
commit2eaee6e79bfb1d495181aaa0e54b8c955c473f0e (patch)
tree0c592205677b3eb5bcd50a185c23b0a39b00c9cf
parentd68d7198becaad02f08eae190ed343a424e3747f (diff)
downloadffmpeg-2eaee6e79bfb1d495181aaa0e54b8c955c473f0e.tar.gz
avcodec/qdrw: skip long comment for now
Fixes part of #5918. Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/qdrw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c
index 828cfea3fd..65914fae84 100644
--- a/libavcodec/qdrw.c
+++ b/libavcodec/qdrw.c
@@ -37,6 +37,8 @@ enum QuickdrawOpcodes {
PACKBITSRGN,
DIRECTBITSRECT,
DIRECTBITSRGN,
+ SHORTCOMMENT = 0x00A0,
+ LONGCOMMENT,
EOP = 0x00FF,
};
@@ -297,6 +299,10 @@ static int decode_frame(AVCodecContext *avctx,
return ret;
*got_frame = 1;
break;
+ case LONGCOMMENT:
+ bytestream2_get_be16(&gbc);
+ bytestream2_skip(&gbc, bytestream2_get_be16(&gbc));
+ break;
default:
av_log(avctx, AV_LOG_TRACE, "Unknown 0x%04X opcode\n", opcode);
break;