demux_lavf: disable support for byte-based seeking
commit511498818f3372a911ca142ab25f59bbb10d7e3f
authorUoti Urpala <uau@mplayer2.org>
Thu, 7 Apr 2011 23:47:02 +0000 (8 02:47 +0300)
committerUoti Urpala <uau@mplayer2.org>
Thu, 7 Apr 2011 23:47:02 +0000 (8 02:47 +0300)
tree21c06c32f6aa7c4a1d30bf05b71294a0b53cc16d
parentd4b5ee2cd55929f190fe626c6d74697709ae2858
demux_lavf: disable support for byte-based seeking

libavformat returns nonsense per-stream bitrate values for some MPEG
files (0 or many times higher than the overall bitrate of the file),
which triggered the heuristic to enable byte-based seeking in
demux_lavf and then made the byte-based seeks wildly inaccurate.
Disable the support for byte-based seeks. This will avoid problems
with files that have consistent timestamps, but on the other hand will
completely break seeking in MPEG files that have timestamp resets.
I'll probably add at least an option to manually enable byte-based
seeking later.
libmpdemux/demux_lavf.c