core: audio: make ogg missing audio timing workaround more complex
commitb4564c2d4fdc14f1fcb6987b8f57a2c27a08bf54
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Thu, 16 Dec 2010 19:26:12 +0000 (16 21:26 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Mon, 20 Dec 2010 17:02:24 +0000 (20 19:02 +0200)
tree714946d9c340a402c6a08c05e3354b92ba3506c5
parentf0649f13d698eb6aeffeaacd6801b666c4366caf
core: audio: make ogg missing audio timing workaround more complex

After the addition of exact seeking the code to work around missing
audio timestamps with ogg/ogm needs improvement. Now it's normal to
need adjustment at stream start time 0 (seeking to a position after
start of video but before second keyframe) with any video format, and
for exact seeks with ogg it's now more important not to skip the
sync. Make the check to detect the problem case more precise to avoid
affecting most other formats, and try to decode a second of audio
(hoping to get timestamps for those packets) before giving up.
mplayer.c