aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-09 01:52:11 +0000
committerGravatar uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-09 01:52:11 +0000
commitd1639ced67d9ccff7d785d1e1542b808c689bdf2 (patch)
tree3b19e9112dfd576e381e4e3f040dd45c3245b8bd
parentf037400b745b5b0e28259ffd034981b7347eac84 (diff)
Change some constants in pts arithmetic from float to double.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20811 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpdemux/demux_real.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/demux_real.c b/libmpdemux/demux_real.c
index 07906ba26f..2c7ddd8a44 100644
--- a/libmpdemux/demux_real.c
+++ b/libmpdemux/demux_real.c
@@ -690,7 +690,7 @@ got_audio:
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 @@ got_audio:
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;