From 2eaee6e79bfb1d495181aaa0e54b8c955c473f0e Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 13 Jan 2017 20:18:36 +0100 Subject: [PATCH] avcodec/qdrw: skip long comment for now Fixes part of #5918. Signed-off-by: Paul B Mahol --- libavcodec/qdrw.c | 6 ++++++ 1 file changed, 6 insertions(+) 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;