From 4b7cfbfb7aa9d3af0f483b15b32882aa453f87a7 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 10 Jan 2003 11:57:15 +0000 Subject: internal input_time is miliseconds now CVS patchset: 3851 CVS date: 2003/01/10 11:57:15 --- src/demuxers/demux_real.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/demuxers/demux_real.c') 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; -- cgit v1.2.3