summaryrefslogtreecommitdiffstats
path: root/player/screenshot.c
diff options
context:
space:
mode:
authorLeo Izen <leo.izen@gmail.com>2023-04-10 10:33:35 -0400
committerLeo Izen <leo.izen@gmail.com>2023-04-10 18:29:56 -0400
commitcbbe2e52210d9885a0897e9c7833267a60456c56 (patch)
tree14065b20dbe8a1c0e7d811fab34e7d9bb38dd00e /player/screenshot.c
parent95d7b05e71a1da9fc38e04994adbb90ae6d356e4 (diff)
downloadmpv-cbbe2e52210d9885a0897e9c7833267a60456c56.tar.bz2
mpv-cbbe2e52210d9885a0897e9c7833267a60456c56.tar.xz
player/screenshot: avoid non-sRGB spaces with --screenshot-tag-csp=no
If --screenshot-tag-csp=no, then there won't be any color tags in the output space, so PNG and JXL screenshots should be written as sRGB rather than the native space of the input video.
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 bb7dfc1cc7..c6c089b052 100644
--- a/player/screenshot.c
+++ b/player/screenshot.c
@@ -347,7 +347,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 = image_writer_flexible_csp(imgopts),
+ .native_csp = imgopts->tag_csp && image_writer_flexible_csp(imgopts),
};
if (!mpctx->opts->screenshot_sw)
vo_control(mpctx->video_out, VOCTRL_SCREENSHOT, &ctrl);