From e38bcd7d056f9a95946ae437e6813e28196148be Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 13 Jan 2010 17:49:48 +0000 Subject: [PATCH] Use double-precision constants instead of single precision that gets cast to double. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30299 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_ts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libmpdemux/demux_ts.c b/libmpdemux/demux_ts.c index 00c39dd80b..264a84f77d 100644 --- a/libmpdemux/demux_ts.c +++ b/libmpdemux/demux_ts.c @@ -1398,10 +1398,10 @@ static int pes_parse2(unsigned char *buf, uint16_t packet_len, ES_stream_t *es, 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 , ES_stream_t *es, unsigned char *packet, } 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;