1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-14 19:05:33 +00:00

Fix for imprecise floating point calculations.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10931 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
mosu 2003-09-22 13:53:29 +00:00
parent 74b135fd61
commit 1e66b2ec01

View File

@ -2190,6 +2190,8 @@ extern "C" int demux_mkv_fill_buffer(demuxer_t *d) {
current_pts = (float)(kblock->GlobalTimecode() / 1000000.0 -
mkv_d->first_tc) / 1000.0;
if (current_pts < 0.0)
current_pts = 0.0;
if (ds == d->audio) {
if (mkv_d->a_skip_to_keyframe &&