You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +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:
@@ -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,
|
|||||||
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;
|
||||||
|
Reference in New Issue
Block a user