[MPlayer-cvslog] r30299 - trunk/libmpdemux/demux_ts.c

reimar subversion at mplayerhq.hu
Wed Jan 13 18:49:48 CET 2010


Author: reimar
Date: Wed Jan 13 18:49:48 2010
New Revision: 30299

Log:
Use double-precision constants instead of single precision that gets cast to double.

Modified:
   trunk/libmpdemux/demux_ts.c

Modified: trunk/libmpdemux/demux_ts.c
==============================================================================
--- trunk/libmpdemux/demux_ts.c	Wed Jan 13 00:03:03 2010	(r30298)
+++ trunk/libmpdemux/demux_ts.c	Wed Jan 13 18:49:48 2010	(r30299)
@@ -1398,10 +1398,10 @@ static int pes_parse2(unsigned char *buf
 		pts |=  p[12]         <<  7 ;
 		pts |= (p[13] & 0xFE) >>  1 ;
 
-		es->pts = pts / (double)90000.0f;
+		es->pts = pts / 90000.0;
 	}
 	else
-		es->pts = 0.0f;
+		es->pts = 0.0;
 
 
 	header_len = p[8];
@@ -3094,7 +3094,7 @@ static int ts_parse(demuxer_t *demuxer ,
 			}
 			else
 			{
-				if(es->pts == 0.0f)
+				if(es->pts == 0.0)
 					es->pts = tss->pts = tss->last_pts;
 				else
 					tss->pts = tss->last_pts = es->pts;


More information about the MPlayer-cvslog mailing list