X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fpictordec.c;h=5c872c955e9212ce4be6188bc1fb6e82370cfa35;hb=78e08fd340e03b49f75e1ac31c20cc21434794bd;hp=ad8eae0b152af4f210ae0f9abf37faa35f9478c5;hpb=d7b8a9a589d94550d2eb2ce4147e69311d6c5745;p=ffmpeg diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index ad8eae0b152..5c872c955e9 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -133,7 +133,7 @@ static int decode_frame(AVCodecContext *avctx, return AVERROR_INVALIDDATA; } - if (bytestream2_peek_byte(&s->g) == 0xFF || bpp == 8) { + if (bytestream2_peek_byte(&s->g) == 0xFF || bpp == 1 || bpp == 4 || bpp == 8) { bytestream2_skip(&s->g, 2); etype = bytestream2_get_le16(&s->g); esize = bytestream2_get_le16(&s->g);