From 445ee35e21c92e2429241d65bdba65f6e7c09132 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 15 May 2011 02:38:02 +0200 Subject: [PATCH] Fix decoding of msrle samples with 1bpp. --- libavcodec/msrle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/msrle.c b/libavcodec/msrle.c index a5c80ff1c..496eb4091 100644 --- a/libavcodec/msrle.c +++ b/libavcodec/msrle.c @@ -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) { -- 2.11.0