From fca3e6082727de3da181085eee47b5f9347d83ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sun, 3 Dec 2023 18:29:35 +0100 Subject: [PATCH] image_writer: add missing mp_image_params in convert_image Fixes chroma location for screenshots. Also set the crop to full frame to not trip mp_image_params_equal check if not necessary. --- video/image_writer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/image_writer.c b/video/image_writer.c index 20620ffb21..a7a2f24be1 100644 --- a/video/image_writer.c +++ b/video/image_writer.c @@ -630,6 +630,8 @@ static struct mp_image *convert_image(struct mp_image *image, int destfmt, .p_w = 1, .p_h = 1, .color = image->params.color, + .chroma_location = image->params.chroma_location, + .crop = {0, 0, d_w, d_h}, }; mp_image_params_guess_csp(&p);