diff options
Diffstat (limited to 'video/image_writer.c')
-rw-r--r-- | video/image_writer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/image_writer.c b/video/image_writer.c index 5ba89c8167..6b2f0f9a92 100644 --- a/video/image_writer.c +++ b/video/image_writer.c @@ -133,8 +133,8 @@ static bool write_lavc(struct image_writer_ctx *ctx, mp_image_t *image, FILE *fp pic->width = avctx->width; pic->height = avctx->height; if (ctx->opts->tag_csp) { - pic->color_primaries = mp_csp_prim_to_avcol_pri(image->params.primaries); - pic->color_trc = mp_csp_trc_to_avcol_trc(image->params.gamma); + pic->color_primaries = mp_csp_prim_to_avcol_pri(image->params.color.primaries); + pic->color_trc = mp_csp_trc_to_avcol_trc(image->params.color.gamma); } #if HAVE_AVCODEC_NEW_CODEC_API |