[FFmpeg-cvslog] libavcodec/libaomdec: add support for transfer characteristics and color primaries
James Almer
git at videolan.org
Thu Mar 29 07:05:58 EEST 2018
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Mar 29 01:03:14 2018 -0300| [97de37da9c2973eea98e805b1f04920c9e00c374] | committer: James Almer
libavcodec/libaomdec: add support for transfer characteristics and color primaries
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97de37da9c2973eea98e805b1f04920c9e00c374
---
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:
More information about the ffmpeg-cvslog
mailing list