Commit 445ee35e authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Fix decoding of msrle samples with 1bpp.

parent 7b915726
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment