summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_real.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-01-10 11:57:15 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-01-10 11:57:15 +0000
commit4b7cfbfb7aa9d3af0f483b15b32882aa453f87a7 (patch)
tree36073c846d54ce98a71d255651e78abe69dc2035 /src/demuxers/demux_real.c
parenta4318a6700f307c76487a66a196860986bd1b781 (diff)
downloadxine-lib-4b7cfbfb7aa9d3af0f483b15b32882aa453f87a7.tar.gz
xine-lib-4b7cfbfb7aa9d3af0f483b15b32882aa453f87a7.tar.bz2
internal input_time is miliseconds now
CVS patchset: 3851 CVS date: 2003/01/10 11:57:15
Diffstat (limited to 'src/demuxers/demux_real.c')
-rw-r--r--src/demuxers/demux_real.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c
index 04a7ec05f..eb06d1b3c 100644
--- a/src/demuxers/demux_real.c
+++ b/src/demuxers/demux_real.c
@@ -28,7 +28,7 @@
*
* Based on FFmpeg's libav/rm.c.
*
- * $Id: demux_real.c,v 1.31 2003/01/08 14:42:46 esnel Exp $
+ * $Id: demux_real.c,v 1.32 2003/01/10 11:57:17 miguelfreitas Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -786,7 +786,8 @@ static int demux_real_send_chunk(demux_plugin_t *this_gen) {
buf->pts = pts;
buf->extra_info->input_pos = this->input->get_current_pos (this->input);
- buf->extra_info->input_time = buf->extra_info->input_pos * 8 / this->avg_bitrate ;
+ buf->extra_info->input_time = buf->extra_info->input_pos * 8 * 1000 /
+ this->avg_bitrate ;
buf->type = this->video_buf_type;
check_newpts (this, pts, PTS_VIDEO, 0);
@@ -870,7 +871,8 @@ static int demux_real_send_chunk(demux_plugin_t *this_gen) {
buf->content = buf->mem;
buf->pts = pts;
buf->extra_info->input_pos = this->input->get_current_pos (this->input);
- buf->extra_info->input_time = buf->extra_info->input_pos * 8 / this->avg_bitrate ;
+ buf->extra_info->input_time = buf->extra_info->input_pos * 8 * 1000 /
+ this->avg_bitrate ;
buf->type = this->audio_buf_type;
buf->decoder_flags = 0;
buf->size = size;