changeset 30257:77265abe0200

Use double-precision constants instead of single precision that gets cast to double.
author reimar
date Wed, 13 Jan 2010 17:49:48 +0000
parents c116c83f6268
children 5788ae4c1e89
files libmpdemux/demux_ts.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c	Tue Jan 12 23:03:03 2010 +0000
+++ b/libmpdemux/demux_ts.c	Wed Jan 13 17:49:48 2010 +0000
@@ -1398,10 +1398,10 @@
 		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 @@
 			}
 			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;