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:
sfan5
2023-07-17 23:16:46 +02:00
parent 157ef77427
commit a960b75604
3 changed files with 7 additions and 5 deletions

View File

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