diff options
author | wm4 <wm4@nowhere> | 2015-11-13 22:47:14 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-13 22:47:14 +0100 |
commit | 62b386c2fdb6d113c2c1042f0b3a973f3fb11828 (patch) | |
tree | 7028e7d60521971ef5d94cbf957a7ff63015c2c5 /player/core.h | |
parent | fad254562b09dcff4d6c95aff5982a6252b09ebb (diff) | |
download | mpv-62b386c2fdb6d113c2c1042f0b3a973f3fb11828.tar.bz2 mpv-62b386c2fdb6d113c2c1042f0b3a973f3fb11828.tar.xz |
player: compute required display-sync speed change differently
Instead of looking at the current frame duration for the intended
speedup, look at all past frames, and find a good average speed. This
ties in with not wanting to average _all_ frame durations, which
doesn't make sense in VFR situations.
This is currently done in the most naive way possible, but already sort
of works for VFR which switches between frame durations that are
integer multiples of a base rate. Certainly more improvements could
be made, such as trying to adjust directly on FPS changes, instead of
averaging everything, but for now this is not needed at all.
Diffstat (limited to 'player/core.h')
0 files changed, 0 insertions, 0 deletions