summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-13 00:52:05 +0200
committerAlessandro Ghedini <alessandro@ghedini.me>2014-08-13 10:55:49 +0200
commit6310bd60e64dff1d12c8d040ba8c87a11f72751b (patch)
treec2c669721d2e9502ae8de25b725a6e068e5b237c
parent6729e39983005f834215b70d31914f6385c59857 (diff)
downloadmpv-6310bd60e64dff1d12c8d040ba8c87a11f72751b.tar.bz2
mpv-6310bd60e64dff1d12c8d040ba8c87a11f72751b.tar.xz
vo_vdpau: fix screenshots with anamorphic video
Fixes #1007. CC: @mpv-player/stable
-rw-r--r--video/out/vo_vdpau.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c
index 7cf11543ed..af3cf90d89 100644
--- a/video/out/vo_vdpau.c
+++ b/video/out/vo_vdpau.c
@@ -906,7 +906,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");
}