summaryrefslogtreecommitdiffstats
path: root/player/screenshot.c
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2023-07-17 23:16:46 +0200
committersfan5 <sfan5@live.de>2023-07-19 13:01:08 +0200
commita960b756045f37eccec43bfb06e9e51c4f245f55 (patch)
tree885c16c5b8426c8ae1fec2418fb71813535e3d29 /player/screenshot.c
parent157ef7742721bdf6a69b0f20649a32f0d590edc3 (diff)
downloadmpv-a960b756045f37eccec43bfb06e9e51c4f245f55.tar.bz2
mpv-a960b756045f37eccec43bfb06e9e51c4f245f55.tar.xz
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: cbbe2e52210d9885a0897e9c7833267a60456c56
Diffstat (limited to 'player/screenshot.c')
-rw-r--r--player/screenshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/screenshot.c b/player/screenshot.c
index 1feeba2133..30810e3d6f 100644
--- a/player/screenshot.c
+++ b/player/screenshot.c
@@ -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);