summaryrefslogtreecommitdiff
path: root/libavcodec/msrle.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-05-15 02:38:02 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-05-15 03:25:57 +0200
commit445ee35e21c92e2429241d65bdba65f6e7c09132 (patch)
tree096cbe7c2aa21b4b5207cc82282416984cb4a959 /libavcodec/msrle.c
parent7b915726ebeab8ce4125dacb4afa79f04913a6fe (diff)
downloadffmpeg-445ee35e21c92e2429241d65bdba65f6e7c09132.tar.gz
Fix decoding of msrle samples with 1bpp.
Diffstat (limited to 'libavcodec/msrle.c')
-rw-r--r--libavcodec/msrle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/msrle.c b/libavcodec/msrle.c
index a5c80ff1c0..496eb40916 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) {