summaryrefslogtreecommitdiffstats
path: root/video/image_writer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-05 19:25:25 +0200
committerwm4 <wm4@nowhere>2015-06-05 22:34:16 +0200
commite0f0f6f3e9820150a5c188e4e78f001617449f82 (patch)
tree601f0d698476d2510904864c6a1d5fe01d7a4a8f /video/image_writer.c
parent650469d65b6c0b18630ee4f7e7da4fad10c6dfbc (diff)
downloadmpv-e0f0f6f3e9820150a5c188e4e78f001617449f82.tar.bz2
mpv-e0f0f6f3e9820150a5c188e4e78f001617449f82.tar.xz
vo_vdpau: directly get surface size from surface for screenshots
The previous code was not wrong, but I'd claim this makes the code more robust. If a situation could happen in which the passed surface size is incorrect, we could have passed a too small image, and VdpOutputSurfaceGetBitsNative could have randomly overwritten memory.
Diffstat (limited to 'video/image_writer.c')
0 files changed, 0 insertions, 0 deletions