demux_mkv: seek: fix bogus audio packet from earlier position
commit721803c631c402ee7ed7aafa133c9c80702349e3
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Mon, 15 Nov 2010 16:18:21 +0000 (15 18:18 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Mon, 15 Nov 2010 16:18:21 +0000 (15 18:18 +0200)
tree2357cdd2c233a761353a4d6b43f59d5d9291141f
parent0478f1a29f8302263f2196525510decf6c2daf19
demux_mkv: seek: fix bogus audio packet from earlier position

Due to a bug created back in 2006 when SimpleBlock support was added,
demux_mkv demuxed one audio packet from the initial file position
after a seek, then skipped the following ones until a video keyframe
was found. This wasn't very noticeable earlier, but it had bad effects
after the recently added -initial-audio-sync code as the extra packet
with an earlier timestamp confused timing calculations and resulted in
desync after seeking. Fix.
libmpdemux/demux_mkv.c