core: timing: fix overflow with extreme playback speed
commitda8c1995056dd6dfb982d612dcd238ae925bd90c
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Fri, 28 Jan 2011 18:15:22 +0000 (28 20:15 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Fri, 28 Jan 2011 18:15:22 +0000 (28 20:15 +0200)
tree24b94f8d2d5ee9fcc25b96bc0af515bef416f4d3
parent5a0e71a972054f22ae5089228d981a59ae796326
core: timing: fix overflow with extreme playback speed

With extreme playback speed changes it was possible to trigger an
overflow in code calculating frame timing. This could break the VDPAU
frame scheduling mechanism and lead to the shown picture not changing
until reset by events such as seeking. Add an extra check to prevent
the overflow.
mplayer.c