From 086b37a830261adb4ecf816413f1fec1dda9bbd4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 24 Aug 2013 16:32:48 +0200 Subject: 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. --- video/out/vo_vaapi.c | 1 + 1 file changed, 1 insertion(+) 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(¶ms); // ensure colorspace consistency mp_image_set_params(img, ¶ms); return img; } -- cgit v1.2.3