summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context_vdpau.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-03-18 20:22:50 +0100
committerwm4 <wm4@nowhere>2017-03-18 20:22:50 +0100
commit03933f35641c65f502dc1e05ad8308e71a44d4fb (patch)
tree36ca379ae114aeed6ce7ee22721590a559d3fedf /video/out/opengl/context_vdpau.c
parentc3248369ac501efb70f0142b909e85a19aed77d2 (diff)
downloadmpv-03933f35641c65f502dc1e05ad8308e71a44d4fb.tar.bz2
mpv-03933f35641c65f502dc1e05ad8308e71a44d4fb.tar.xz
vo_opengl: fix some undefined behavior
The gl_timer_last_us() function could access samples[-1]. Fix by coercing to unsigned, so the % will put it into index [0,max). The real value returned in this corner case doesn't mean too much, I guess.
Diffstat (limited to 'video/out/opengl/context_vdpau.c')
0 files changed, 0 insertions, 0 deletions