diff options
author | Anton Kindestam <antonki@kth.se> | 2018-02-24 21:34:32 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-26 23:56:13 -0800 |
commit | 0874e4e461e3ade9e3bf1f537732c5f849a15b5e (patch) | |
tree | f156c6025efdfbb3827f8560cecd1bfed12c14ae /video/out/vo_vaapi.c | |
parent | fe23715876282215aa3d7cca26722ada4396d425 (diff) | |
download | mpv-0874e4e461e3ade9e3bf1f537732c5f849a15b5e.tar.bz2 mpv-0874e4e461e3ade9e3bf1f537732c5f849a15b5e.tar.xz |
vo_drm: Fix pageflip errors on VT switch
crtc_setup gets called on VT reacquire as well as during normal setup. When
called during VT reacquire p->front_buf might not be 0, so the maths was wrong,
and could cause array OOB errors. Use mathematically correct (for negative
numbers) modulo to always pick the farthest away buffer (should work
even for larger values of BUF_COUNT).
Diffstat (limited to 'video/out/vo_vaapi.c')
0 files changed, 0 insertions, 0 deletions