diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-12-03 18:29:35 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-12-04 20:34:17 +0100 |
commit | fca3e6082727de3da181085eee47b5f9347d83ad (patch) | |
tree | 575d01cb310a9481f526b4bf3feb7e657306a7f2 /video | |
parent | a7221946845732667f087df6cc03361329de952c (diff) | |
download | mpv-fca3e6082727de3da181085eee47b5f9347d83ad.tar.bz2 mpv-fca3e6082727de3da181085eee47b5f9347d83ad.tar.xz |
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.
Diffstat (limited to 'video')
-rw-r--r-- | video/image_writer.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |