mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-13 10:51:38 +00:00
avcodec/proresdec2: add missing frame color metadata
Stolen from removed decoder. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
99d24499c2
commit
81d78fe13b
@ -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->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;
|
ptr = buf + 20;
|
||||||
flags = buf[19];
|
flags = buf[19];
|
||||||
ff_dlog(avctx, "flags %x\n", flags);
|
ff_dlog(avctx, "flags %x\n", flags);
|
||||||
|
Loading…
Reference in New Issue
Block a user