Browse Source

Fix decoding of msrle samples with 1bpp.

tags/n0.8
Carl Eugen Hoyos 14 years ago
parent
commit
445ee35e21
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/msrle.c

+ 1
- 1
libavcodec/msrle.c View File

@@ -93,7 +93,7 @@ static int msrle_decode_frame(AVCodecContext *avctx,
return -1;
}

if (avctx->bits_per_coded_sample <= 8) {
if (avctx->bits_per_coded_sample > 1 && avctx->bits_per_coded_sample <= 8) {
const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, NULL);

if (pal) {


Loading…
Cancel
Save