diff options
author | wm4 <wm4@nowhere> | 2015-05-20 14:24:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-20 14:24:55 +0200 |
commit | 3e0dae6959d61c053be9811012debde2f17f8ade (patch) | |
tree | 145cb5451f1ad4b8a563cb3af3328ae60e0bb018 /stream/ai_sndio.c | |
parent | 402fe381d7a94c8596d1bed0c8e089b08a298e85 (diff) | |
download | mpv-3e0dae6959d61c053be9811012debde2f17f8ade.tar.bz2 mpv-3e0dae6959d61c053be9811012debde2f17f8ade.tar.xz |
video: better heuristic for timestamp resets
Reduce the default tolerance for timestamp jumps from 60 to 15 seconds.
For .ts files, where ts_resets_possible coming from AVFMT_TS_DISCONT is
set, apply a more sophisticated heuristic. It's clear that such a file
wouldn't have a framerate below, say, 23hz. If the demuxer reports a
lower fps, we allow longer PTS jumps.
This should replace long pauses on discontinuities with .ts files with
at most a short stutter.
Of course, all kinds of things could go wrong anyway if the source is
VFR, or FFmpeg's frame rate detection fails in some other way. I haven't
found such a file yet, though.
Diffstat (limited to 'stream/ai_sndio.c')
0 files changed, 0 insertions, 0 deletions