mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/proresdec2: set color information on frames instead of the decoder context
Similar to how the encoder looks at frame color information to write the frame header bitstream. Should workaround ticket #10091, where container level color parameters passed to the decoder context were being overwritten. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
18f24527eb
commit
7fab58647c
@ -289,10 +289,10 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
|
||||
avctx->pix_fmt = ret;
|
||||
}
|
||||
|
||||
avctx->color_primaries = buf[14];
|
||||
avctx->color_trc = buf[15];
|
||||
avctx->colorspace = buf[16];
|
||||
avctx->color_range = AVCOL_RANGE_MPEG;
|
||||
ctx->frame->color_primaries = buf[14];
|
||||
ctx->frame->color_trc = buf[15];
|
||||
ctx->frame->colorspace = buf[16];
|
||||
ctx->frame->color_range = AVCOL_RANGE_MPEG;
|
||||
|
||||
ptr = buf + 20;
|
||||
flags = buf[19];
|
||||
|
Loading…
Reference in New Issue
Block a user