1
mirror of https://github.com/mpv-player/mpv synced 2024-10-30 04:46:41 +01:00

vo_vdpau: fix screenshots with anamorphic video

Fixes #1007.

CC: @mpv-player/stable
This commit is contained in:
wm4 2014-08-13 00:52:05 +02:00
parent f6f93b6336
commit 9ed9c68fda

View File

@ -907,7 +907,7 @@ static struct mp_image *get_screenshot(struct vo *vo)
if (vc->screenshot_surface == VDP_INVALID_HANDLE) {
vdp_st = vdp->output_surface_create(vc->vdp_device,
OUTPUT_RGBA_FORMAT,
vc->vid_width, vc->vid_height,
vo->params->d_w, vo->params->d_h,
&vc->screenshot_surface);
CHECK_VDP_WARNING(vo, "Error when calling vdp_output_surface_create");
}