demux_mkv: fix seeks to before the first index entry
commit042ab4feb5deece2535a081976fdf6b64faa3d05
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Mon, 20 Dec 2010 00:26:10 +0000 (20 02:26 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Mon, 20 Dec 2010 00:26:10 +0000 (20 02:26 +0200)
treead61bc40008e941108dbbda7acf17e57b64e4e03
parent74ac4d10a44beed08d759c173f6f48d358ab1264
demux_mkv: fix seeks to before the first index entry

Make seeks backward from a time before the first index entry go to the
first entry instead of failing completely. This change doesn't affect
behavior for most files, because seeks are clamped to 0 from below and
normally files have the first index entry at 0.
libmpdemux/demux_mkv.c