aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-07-22 10:19:03 +0200
committerPaul B Mahol <onemda@gmail.com>2018-07-22 10:19:03 +0200
commit3237f018fd0e0c0fe8ffb2b1cece23ee58a220a8 (patch)
treeb3896c9532c5dc45dd7fa7a9c289b2fc6e63155b
parent1b0922584e463d5979d92bc4613a44e41a56c315 (diff)
downloadffmpeg-3237f018fd0e0c0fe8ffb2b1cece23ee58a220a8.tar.gz
avcodec/bink: set color range
-rw-r--r--libavcodec/bink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/bink.c b/libavcodec/bink.c
index b3136b763c..9c17dedcba 100644
--- a/libavcodec/bink.c
+++ b/libavcodec/bink.c
@@ -1343,6 +1343,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
return ret;
avctx->pix_fmt = c->has_alpha ? AV_PIX_FMT_YUVA420P : AV_PIX_FMT_YUV420P;
+ avctx->color_range = c->version == 'k' ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG;
ff_blockdsp_init(&c->bdsp, avctx);
ff_hpeldsp_init(&c->hdsp, avctx->flags);