summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-12-12 21:37:34 +0100
committerNiklas Haas <github-daiK1o@haasn.dev>2023-02-13 21:53:41 +0100
commit4f84d91df2ad28f0418aae87362bc1af3d6dba50 (patch)
treeb62f3c356f828ff9af054203a70185457b75fd44 /video/out
parent2e0bdbfe9cb856544ee5af2a9bbf82e1b07e5e06 (diff)
downloadmpv-4f84d91df2ad28f0418aae87362bc1af3d6dba50.tar.bz2
mpv-4f84d91df2ad28f0418aae87362bc1af3d6dba50.tar.xz
vo_gpu_next: be explicit about screenshot repr
Screenshots are currently always RGB. Subject to change, but needs to be communicated clearly if changed. This commit is not a functional change, it's merely for code clarity.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/vo_gpu_next.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c
index 78c7a4c445..ed9aec8b2e 100644
--- a/video/out/vo_gpu_next.c
+++ b/video/out/vo_gpu_next.c
@@ -1217,6 +1217,7 @@ static void video_screenshot(struct vo *vo, struct voctrl_screenshot *args)
}
struct pl_frame target = {
+ .repr = pl_color_repr_rgb,
.num_planes = 1,
.planes[0] = {
.texture = fbo,