[FFmpeg-devel] [PATCH] pictordec: decode 8bpp images when extra header marker is missing
Peter Ross
pross at xvid.org
Sat Dec 3 02:21:33 CET 2011
Fixes ticket #696.
---
libavcodec/pictordec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c
index ed372bc..7c95f89 100644
--- a/libavcodec/pictordec.c
+++ b/libavcodec/pictordec.c
@@ -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);
--
1.7.7.3
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111203/75e5b5a0/attachment.asc>
More information about the ffmpeg-devel
mailing list