core: Improve handling of bad timestamps
commit2d532689fcc96deaa8ae8c05c34e315cfcef8350
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Wed, 14 Jan 2009 22:32:03 +0000 (15 00:32 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Wed, 14 Jan 2009 22:32:03 +0000 (15 00:32 +0200)
tree22fb44c6714c0f34616666c03910733a619b052a
parent02bc48b67dd88c974c8f9298a0c50cbfcd51af41
core: Improve handling of bad timestamps

Rewrite some of the -correct-pts frame generation code. The most
noticeable difference is that video timestamps which jump around but
do not go backwards more than 0.5 seconds will not affect overall
video playback speed. Only larger jumps are treated as timestamp
resets and increase the overall length of the video timeline. This
will hopefully give watchable results for videos which have broken
timestamps or which MPlayer does not demux or otherwise handle
properly.
mplayer.c