changeset 20795:047887057875

Change some constants in pts arithmetic from float to double.
author uau
date Thu, 09 Nov 2006 01:52:11 +0000
parents cc6e090f9a75
children dee98cb0b090
files libmpdemux/demux_real.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_real.c	Thu Nov 09 01:42:52 2006 +0000
+++ b/libmpdemux/demux_real.c	Thu Nov 09 01:52:11 2006 +0000
@@ -690,7 +690,7 @@
 		    demux_packet_t *dp = new_demux_packet(sub_packet_lengths[i]);
 		    stream_read(demuxer->stream, dp->buffer, sub_packet_lengths[i]);
 		    if (priv->a_pts != timestamp)
-			dp->pts = timestamp / 1000.0f;
+			dp->pts = timestamp / 1000.0;
 		    priv->a_pts = timestamp;
 		    dp->pos = demuxer->filepos;
 		    ds_add_packet(ds, dp);
@@ -747,7 +747,7 @@
                     break;
             }
             priv->audio_need_keyframe = 0;
-            priv->audio_timestamp[priv->sub_packet_cnt] = (priv->a_pts==timestamp) ? (correct_pts ? MP_NOPTS_VALUE : 0) : (timestamp/1000.0f);
+            priv->audio_timestamp[priv->sub_packet_cnt] = (priv->a_pts==timestamp) ? (correct_pts ? MP_NOPTS_VALUE : 0) : (timestamp/1000.0);
             priv->a_pts = timestamp;
             if (priv->sub_packet_cnt == 0)
                 priv->audio_filepos = demuxer->filepos;