From e141caa97dade07f4d7e0d6c208bcd3493e712ed Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 28 Feb 2015 01:42:04 +0100 Subject: vd_lavc: respect lavc's color_trc field We now actually use the TRC tagging information lavc provides us with, instead of always manually guessing. --- video/decode/vd_lavc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/decode/vd_lavc.c') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 9e0a778990..e32ff6b01e 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -477,6 +477,7 @@ static void update_image_params(struct dec_video *vd, AVFrame *frame, .colorspace = avcol_spc_to_mp_csp(ctx->avctx->colorspace), .colorlevels = 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), .chroma_location = avchroma_location_to_mp(ctx->avctx->chroma_sample_location), .rotate = vd->header->video->rotate, -- cgit v1.2.3