Commit 97de37da authored by James Almer's avatar James Almer

libavcodec/libaomdec: add support for transfer characteristics and color primaries

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 416d354a
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment