Commit 3237f018 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/bink: set color range

parent 1b092258
...@@ -1343,6 +1343,7 @@ static av_cold int decode_init(AVCodecContext *avctx) ...@@ -1343,6 +1343,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
return ret; return ret;
avctx->pix_fmt = c->has_alpha ? AV_PIX_FMT_YUVA420P : AV_PIX_FMT_YUV420P; 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_blockdsp_init(&c->bdsp, avctx);
ff_hpeldsp_init(&c->hdsp, avctx->flags); ff_hpeldsp_init(&c->hdsp, avctx->flags);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment