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.
This commit is contained in:
wm4 2013-08-24 16:32:48 +02:00
parent 402f85f7f2
commit 086b37a830
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}