diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-09 18:23:35 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-09 18:23:35 +0300 |
commit | 3f75062ca65cea46fa9e06ab5f5271ad310440fd (patch) | |
tree | e857a9a30585632b2af6af5e8e5c54709d7faaf6 /libmpdemux | |
parent | d9977e1c818d589e83e8dc2f0da84ad2e4960d86 (diff) |
demux_mkv: Round more seeks to "backwards" keyframes
Allow more fuzziness in treating timestamps as inaccurate attempts to
seek "exactly" to a keyframe. A seek forward can now actually go to a
keyframe 5 ms back from the timecode, and correspondingly for seeks
backwards. Before only 1 ms was allowed. This helps with some
files that have inaccurate chapter boundaries.
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mkv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_mkv.c b/libmpdemux/demux_mkv.c index e4b3540913..4859bc4f53 100644 --- a/libmpdemux/demux_mkv.c +++ b/libmpdemux/demux_mkv.c @@ -2958,7 +2958,7 @@ demux_mkv_seek (demuxer_t *demuxer, float rel_seek_secs, float audio_delay, int } // Adjust the target a little bit to catch cases where the target position // specifies a keyframe with high, but not perfect, precision. - rel_seek_secs += flags & SEEK_FORWARD ? -0.001 : 0.001; + rel_seek_secs += flags & SEEK_FORWARD ? -0.005 : 0.005; free_cached_dps (demuxer); if (!(flags & SEEK_FACTOR)) /* time in secs */ |