[Mplayer-cvslog] CVS: main/libmpdemux demux_mkv.cpp,1.33,1.34

Moritz Bunkus CVS mosu at mplayerhq.hu
Mon Sep 22 15:54:10 CEST 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv2080

Modified Files:
	demux_mkv.cpp 
Log Message:
Fix for imprecise floating point calculations.

Index: demux_mkv.cpp
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- demux_mkv.cpp	15 Sep 2003 21:03:49 -0000	1.33
+++ demux_mkv.cpp	22 Sep 2003 13:53:29 -0000	1.34
@@ -2190,6 +2190,8 @@
 
               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 &&       



More information about the MPlayer-cvslog mailing list