core: Handle missing timestamp errors a bit better
commit017fafac4423fe2d868da7622f5d8d968a1b9fe7
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Fri, 24 Apr 2009 00:39:54 +0000 (24 03:39 +0300)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Fri, 24 Apr 2009 01:00:42 +0000 (24 04:00 +0300)
tree07c6e81386d3f6ca9be06e0e06427a795db32924
parent1b272e3b2d8de97744c5316e5bdbeb6e8b867b1d
core: Handle missing timestamp errors a bit better

If there is no timestamp available for a video frame at all, use
timestamp from the previous frame (if any) instead of leaving it as
MP_NOPTS_VALUE. The main practical difference for playback is that
MP_NOPTS_VALUE caused timing to be reset, moving current video
position immediately to time of the next frame that had a timestamp
and thus likely advancing the video too fast. Now the next frame with
a timestamp will be shown at its proper position relative to the
previous timestamp.
mplayer.c