mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 03:08:33 +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:
parent
a722194684
commit
fca3e60827
@ -630,6 +630,8 @@ static struct mp_image *convert_image(struct mp_image *image, int destfmt,
|
|||||||
.p_w = 1,
|
.p_w = 1,
|
||||||
.p_h = 1,
|
.p_h = 1,
|
||||||
.color = image->params.color,
|
.color = image->params.color,
|
||||||
|
.chroma_location = image->params.chroma_location,
|
||||||
|
.crop = {0, 0, d_w, d_h},
|
||||||
};
|
};
|
||||||
mp_image_params_guess_csp(&p);
|
mp_image_params_guess_csp(&p);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user