summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-24 16:32:48 +0200
committerwm4 <wm4@nowhere>2013-08-24 16:32:48 +0200
commit086b37a830261adb4ecf816413f1fec1dda9bbd4 (patch)
tree0ddefb815c610fd250dd85bdc14c67ed7a516a75 /video
parent402f85f7f28842175f6a4ca2812e63d042506308 (diff)
downloadmpv-086b37a830261adb4ecf816413f1fec1dda9bbd4.tar.bz2
mpv-086b37a830261adb4ecf816413f1fec1dda9bbd4.tar.xz
vo_vaapi: potentially fix screenshot colorspace issues
mp_image_set_params() doesn't check whether the colorspace parameters are consistent (e.g. setting YUV colorspaces with RGB formats), and shouldn't need to.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_vaapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c
index e41e1a9c56..d7947cda20 100644
--- a/video/out/vo_vaapi.c
+++ b/video/out/vo_vaapi.c
@@ -654,6 +654,7 @@ static struct mp_image *get_screenshot(struct priv *p)
return NULL;
struct mp_image_params params = p->image_params;
params.imgfmt = img->imgfmt;
+ mp_image_params_guess_csp(&params); // ensure colorspace consistency
mp_image_set_params(img, &params);
return img;
}