aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-03-29 01:03:14 -0300
committerJames Almer <jamrial@gmail.com>2018-03-29 01:03:14 -0300
commit97de37da9c2973eea98e805b1f04920c9e00c374 (patch)
tree42a242ea925be975a4fabf936ade17a4cbaa3244
parent416d354a576d0f3f25ef86a1891d2a9930683018 (diff)
downloadffmpeg-97de37da9c2973eea98e805b1f04920c9e00c374.tar.gz
libavcodec/libaomdec: add support for transfer characteristics and color primaries
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/libaomdec.c2
1 files changed, 2 insertions, 0 deletions
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: