summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-06 21:06:54 +0200
committerwm4 <wm4@nowhere>2015-06-06 21:06:54 +0200
commitfb7d0c80cc6375a513ad7a2ebd34272b99078018 (patch)
treee912ce369753eacfca4073e8c5c6d09ecaaa5018 /video/out/vo.c
parent57048c7393e94820520a395e569d05cdcc085224 (diff)
downloadmpv-fb7d0c80cc6375a513ad7a2ebd34272b99078018.tar.bz2
mpv-fb7d0c80cc6375a513ad7a2ebd34272b99078018.tar.xz
vo_vdpau: add a NULL check, verify image dimensions
read_output_surface() could fail and return NULL. Also, make sure we don't set the image to a size larger than the allocated size. Normally this shouldn't happen, but in theory it could in corner cases; this is for robustness.
Diffstat (limited to 'video/out/vo.c')
0 files changed, 0 insertions, 0 deletions