From 98ed9722462bcd93edb2d00820a9f20901cea9d3 Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Tue, 29 Oct 2024 00:58:14 -0400 Subject: [PATCH] video/mp_image: fix original param copy implementation Fixes: 9b571a7aa711b9587e6acf68572e2003e2ddd51e --- video/mp_image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video/mp_image.c b/video/mp_image.c index d7cc49de0b..83fa7e9ea6 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -519,9 +519,9 @@ void mp_image_copy_attributes(struct mp_image *dst, struct mp_image *src) dst->params.chroma_location = src->params.chroma_location; dst->params.crop = src->params.crop; dst->nominal_fps = src->nominal_fps; - dst->params.primaries_orig = dst->params.color.primaries; - dst->params.transfer_orig = dst->params.color.transfer; - dst->params.sys_orig = dst->params.repr.sys; + dst->params.primaries_orig = src->params.primaries_orig; + dst->params.transfer_orig = src->params.transfer_orig; + dst->params.sys_orig = src->params.sys_orig; // ensure colorspace consistency enum pl_color_system dst_forced_csp = mp_image_params_get_forced_csp(&dst->params);