Commit 56f6628b authored by Peter Ross's avatar Peter Ross Committed by Michael Niedermayer

pictordec: decode 8bpp images when extra header marker is missing

Fixes ticket #696.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2d6a45c1
......@@ -130,7 +130,7 @@ static int decode_frame(AVCodecContext *avctx,
return AVERROR_INVALIDDATA;
}
if (*buf == 0xFF) {
if (*buf == 0xFF || bpp == 8) {
buf += 2;
etype = bytestream_get_le16(&buf);
esize = bytestream_get_le16(&buf);
......
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