video/mp_image: fix original param copy implementation

Fixes: 9b571a7aa7
This commit is contained in:
nanahi 2024-10-29 00:58:14 -04:00 committed by Kacper Michajłow
parent 059f78b517
commit 98ed972246
1 changed files with 3 additions and 3 deletions

View File

@ -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.chroma_location = src->params.chroma_location;
dst->params.crop = src->params.crop; dst->params.crop = src->params.crop;
dst->nominal_fps = src->nominal_fps; dst->nominal_fps = src->nominal_fps;
dst->params.primaries_orig = dst->params.color.primaries; dst->params.primaries_orig = src->params.primaries_orig;
dst->params.transfer_orig = dst->params.color.transfer; dst->params.transfer_orig = src->params.transfer_orig;
dst->params.sys_orig = dst->params.repr.sys; dst->params.sys_orig = src->params.sys_orig;
// ensure colorspace consistency // ensure colorspace consistency
enum pl_color_system dst_forced_csp = mp_image_params_get_forced_csp(&dst->params); enum pl_color_system dst_forced_csp = mp_image_params_get_forced_csp(&dst->params);