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.
Showing the changes to libavcodec/8bps.c (1 of 4 files). Show all
Unified · Split
| @@ -119,7 +119,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, · 118 unmodified lines | ||
| 119 | 119 | } |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | − if ((avctx->bits_per_coded_sample & 0x1f) <= 8) { | |
| 122 | + if (avctx->bits_per_coded_sample <= 8) { | |
| 123 | 123 | const uint8_t *pal = av_packet_get_side_data(avpkt, |
| 124 | 124 | AV_PKT_DATA_PALETTE, |
| 125 | 125 | NULL); |