1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-20 18:28:01 +00:00

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.
This commit is contained in:
Kacper Michajłow 2023-12-03 18:29:35 +01:00 committed by sfan5
parent a722194684
commit fca3e60827

View File

@ -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);