diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-04-28 13:58:05 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-04-28 13:58:05 +0200 |
commit | 81d78fe13bc1fd94845c002f3439fe44d9e9e0d9 (patch) | |
tree | c5c15f3f2c8bbaaf6a58c65a9741daeb70d3bed4 /libavcodec/proresdec2.c | |
parent | 99d24499c2318743a50aff1c6dac92a390997952 (diff) | |
download | ffmpeg-81d78fe13bc1fd94845c002f3439fe44d9e9e0d9.tar.gz |
avcodec/proresdec2: add missing frame color metadata
Stolen from removed decoder.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/proresdec2.c')
-rw-r--r-- | libavcodec/proresdec2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/proresdec2.c b/libavcodec/proresdec2.c index 35bc3effdb..b4ea6b5e03 100644 --- a/libavcodec/proresdec2.c +++ b/libavcodec/proresdec2.c @@ -117,6 +117,11 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf, avctx->pix_fmt = (buf[12] & 0xC0) == 0xC0 ? AV_PIX_FMT_YUV444P10 : AV_PIX_FMT_YUV422P10; } + avctx->color_primaries = buf[14]; + avctx->color_trc = buf[15]; + avctx->colorspace = buf[16]; + avctx->color_range = AVCOL_RANGE_MPEG; + ptr = buf + 20; flags = buf[19]; ff_dlog(avctx, "flags %x\n", flags); |