Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMats Peterson <matsp888@yahoo.com>2016-02-12 13:24:30 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-13 02:58:29 +0300
commitbbb45773b0436887b92e3a7eab79d5b460398f77 (patch)
tree8950184980cd631872a9667928b555f7eab20a3c /libavcodec/rawdec.c
parentf80b4750b9e77dd2fc4a93dfca9627d52da8ba9e (diff)
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.c2
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);
}
}