Commit 2eaee6e7 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/qdrw: skip long comment for now

Fixes part of #5918.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent d68d7198
...@@ -37,6 +37,8 @@ enum QuickdrawOpcodes { ...@@ -37,6 +37,8 @@ enum QuickdrawOpcodes {
PACKBITSRGN, PACKBITSRGN,
DIRECTBITSRECT, DIRECTBITSRECT,
DIRECTBITSRGN, DIRECTBITSRGN,
SHORTCOMMENT = 0x00A0,
LONGCOMMENT,
EOP = 0x00FF, EOP = 0x00FF,
}; };
...@@ -297,6 +299,10 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -297,6 +299,10 @@ static int decode_frame(AVCodecContext *avctx,
return ret; return ret;
*got_frame = 1; *got_frame = 1;
break; break;
case LONGCOMMENT:
bytestream2_get_be16(&gbc);
bytestream2_skip(&gbc, bytestream2_get_be16(&gbc));
break;
default: default:
av_log(avctx, AV_LOG_TRACE, "Unknown 0x%04X opcode\n", opcode); av_log(avctx, AV_LOG_TRACE, "Unknown 0x%04X opcode\n", opcode);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment