mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
image_writer: move tag_csp check into image_writer_flexible_csp()
This ensures the sRGB fallback to happen in all situations involving
the image writer code, notably --screenshot-sw.
fixes: cbbe2e5221
This commit is contained in:
@@ -350,7 +350,7 @@ static struct mp_image *screenshot_get(struct MPContext *mpctx, int mode,
|
||||
.subs = mode != 0,
|
||||
.osd = mode == MODE_FULL_WINDOW,
|
||||
.high_bit_depth = high_depth && imgopts->high_bit_depth,
|
||||
.native_csp = imgopts->tag_csp && image_writer_flexible_csp(imgopts),
|
||||
.native_csp = image_writer_flexible_csp(imgopts),
|
||||
};
|
||||
if (!mpctx->opts->screenshot_sw)
|
||||
vo_control(mpctx->video_out, VOCTRL_SCREENSHOT, &ctrl);
|
||||
|
||||
Reference in New Issue
Block a user