Browse Source

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

Fixes ticket #696.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Peter Ross Michael Niedermayer 13 years ago
parent
commit
56f6628bca
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/pictordec.c

+ 1
- 1
libavcodec/pictordec.c View File

@@ -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…
Cancel
Save