diff options
author | Mats Peterson <matsp888@yahoo.com> | 2016-02-12 11:24:30 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-13 00:58:29 +0100 |
commit | bbb45773b0436887b92e3a7eab79d5b460398f77 (patch) | |
tree | 8950184980cd631872a9667928b555f7eab20a3c /libavcodec/rawdec.c | |
parent | f80b4750b9e77dd2fc4a93dfca9627d52da8ba9e (diff) | |
download | ffmpeg-bbb45773b0436887b92e3a7eab79d5b460398f77.tar.gz |
avcodec/rawdec: Initialize default mono palette only for bits_per_coded_sample == 1
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/rawdec.c')
-rw-r--r-- | libavcodec/rawdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index b7ce2b67d5..1b85b9670f 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -100,7 +100,7 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx) avpriv_set_systematic_pal2((uint32_t*)context->palette->data, avctx->pix_fmt); else { memset(context->palette->data, 0, AVPALETTE_SIZE); - if (avctx->bits_per_coded_sample <= 1) + if (avctx->bits_per_coded_sample == 1) memset(context->palette->data, 0xff, 4); } } |