summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 78d34bbb47..cc3bbc86c7 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -638,10 +638,10 @@ static void update_image_params(struct dec_video *vd, AVFrame *frame,
.p_w = frame->sample_aspect_ratio.num,
.p_h = frame->sample_aspect_ratio.den,
.color = {
- .space = avcol_spc_to_mp_csp(ctx->avctx->colorspace),
- .levels = avcol_range_to_mp_csp_levels(ctx->avctx->color_range),
- .primaries = avcol_pri_to_mp_csp_prim(ctx->avctx->color_primaries),
- .gamma = avcol_trc_to_mp_csp_trc(ctx->avctx->color_trc),
+ .space = avcol_spc_to_mp_csp(frame->colorspace),
+ .levels = avcol_range_to_mp_csp_levels(frame->color_range),
+ .primaries = avcol_pri_to_mp_csp_prim(frame->color_primaries),
+ .gamma = avcol_trc_to_mp_csp_trc(frame->color_trc),
.sig_peak = ctx->cached_hdr_peak,
},
.chroma_location =