diff options
author | James Ross-Gowan <rossy@jrg.systems> | 2019-10-19 00:12:06 +1100 |
---|---|---|
committer | James Ross-Gowan <rossy@jrg.systems> | 2019-10-26 01:14:01 +1100 |
commit | 7384b054335b334d040f11ee22129afc99b77f63 (patch) | |
tree | f97197c08a94f7817b07377e77b1527996a462bf /sub/img_convert.c | |
parent | ca0177481b910c606e482a525d16c698bb340e82 (diff) | |
download | mpv-7384b054335b334d040f11ee22129afc99b77f63.tar.bz2 mpv-7384b054335b334d040f11ee22129afc99b77f63.tar.xz |
vo_gpu: d3d11: prevent wraparound in queued frames calc
If expected_sync_pc is greater than submit_count, the unsigned
subtraction will wraparound, which breaks playback. This bug was found
while experimenting with bit-blt model present, but it might be possible
to trigger it with the flip model as well, if there was a dropped frame.
Diffstat (limited to 'sub/img_convert.c')
0 files changed, 0 insertions, 0 deletions