mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
pictordec: decode 8bpp images when extra header marker is missing
Fixes ticket #696. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2d6a45c12a
commit
56f6628bca
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user