From 691dec62011fe9993809fbc793126b40cac0c584 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 12 Dec 2013 13:47:44 +0100 Subject: Allow stream-copying grayscale mov files. This reverts 0de2157f / r12272. Fixes ticket #3215. Signed-off-by: Michael Niedermayer --- libavcodec/8bps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/8bps.c') diff --git a/libavcodec/8bps.c b/libavcodec/8bps.c index d01ef924c7..1709368c65 100644 --- a/libavcodec/8bps.c +++ b/libavcodec/8bps.c @@ -119,7 +119,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, } } - if (avctx->bits_per_coded_sample <= 8) { + if ((avctx->bits_per_coded_sample & 0x1f) <= 8) { const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, NULL); -- cgit v1.2.3