1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-07-20 11:14:12 +02:00

avcodec/qdrw: skip long comment for now

Fixes part of #5918.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2017-01-13 20:18:36 +01:00
parent d68d7198be
commit 2eaee6e79b

View File

@ -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;