diff options
author | wm4 <wm4@nowhere> | 2013-08-24 16:32:48 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-24 16:32:48 +0200 |
commit | 086b37a830261adb4ecf816413f1fec1dda9bbd4 (patch) | |
tree | 0ddefb815c610fd250dd85bdc14c67ed7a516a75 /video | |
parent | 402f85f7f28842175f6a4ca2812e63d042506308 (diff) | |
download | mpv-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.c | 1 |
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(¶ms); // ensure colorspace consistency mp_image_set_params(img, ¶ms); return img; } |