From 97de37da9c2973eea98e805b1f04920c9e00c374 Mon Sep 17 00:00:00 2001 From: James Almer Date: Thu, 29 Mar 2018 01:03:14 -0300 Subject: [PATCH] libavcodec/libaomdec: add support for transfer characteristics and color primaries Signed-off-by: James Almer --- libavcodec/libaomdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/libaomdec.c b/libavcodec/libaomdec.c index 1d077e035e..1352b421d9 100644 --- a/libavcodec/libaomdec.c +++ b/libavcodec/libaomdec.c @@ -89,7 +89,9 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img) AVCOL_RANGE_MPEG, AVCOL_RANGE_JPEG }; avctx->color_range = color_ranges[img->range]; + avctx->color_primaries = img->cp; avctx->colorspace = img->mc; + avctx->color_trc = img->tc; switch (img->fmt) { case AOM_IMG_FMT_I420: