demux_lavf: Make absolute seek time 0-based instead of file start
commit1b272e3b2d8de97744c5316e5bdbeb6e8b867b1d
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Thu, 23 Apr 2009 23:18:19 +0000 (24 02:18 +0300)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Thu, 23 Apr 2009 23:18:19 +0000 (24 02:18 +0300)
treed0c6ba8f7251fcd0adeb8f2a1e70e8ec76622932
parent7180728cbad8196146010e12191e0b5f1ce560b1
demux_lavf: Make absolute seek time 0-based instead of file start

demux_lavf interpreted absolute seeks as relative to the start of the
file, so if the file didn't start at timestamp 0 then seeking to
timestamp X went to a position MPlayer would display as start+X. Make
the seeks use the same timestamps as used in the original file. This
works better for most use cases as no part of MPlayer normally uses or
displays such "since start of file" timestamp values. There could be
some cases where the old semantics are useful, but I think they do not
justify making it the default behavior; a separate feature for that
could be added if it turns out to be needed.
libmpdemux/demux_lavf.c