summaryrefslogtreecommitdiff
path: root/libavcodec/8bps.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-03-11 20:09:07 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-03-11 20:09:07 +0100
commit54bbe3e2a645b4f7b36efac2bca331d3be98592a (patch)
treeb110785a1310fa2e0364d5db514f91adb475187c /libavcodec/8bps.c
parent5d75730c58f72918a41bb5abda4b448ecdd4273c (diff)
Revert "Allow stream-copying grayscale mov files."
This reverts commit 691dec62011fe9993809fbc793126b40cac0c584. The commit did not fix ticket #3215, it was fixed one commit earlier. The revert may break other use-cases but they should be fixed differently, the offending commit introduced too many problems. Fixes ticket #3377. Fixes ticket #3378.
Diffstat (limited to 'libavcodec/8bps.c')
-rw-r--r--libavcodec/8bps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/8bps.c b/libavcodec/8bps.c
index 1709368c65..d01ef924c7 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 & 0x1f) <= 8) {
+ if (avctx->bits_per_coded_sample <= 8) {
const uint8_t *pal = av_packet_get_side_data(avpkt,
AV_PKT_DATA_PALETTE,
NULL);