diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-12-15 21:23:39 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-12-15 21:23:39 +0000 |
commit | 83ae1242e7611d1fd89bd2a258ae524bf5a0a54f (patch) | |
tree | ed3e6c1ef876d0bdd128a6ccbe801cff81430ea7 | |
parent | cba89b653c86bc6d2e303b94e2e8d84aad7f5444 (diff) | |
download | xine-lib-83ae1242e7611d1fd89bd2a258ae524bf5a0a54f.tar.gz xine-lib-83ae1242e7611d1fd89bd2a258ae524bf5a0a54f.tar.bz2 |
cleanup
CVS patchset: 3549
CVS date: 2002/12/15 21:23:39
-rw-r--r-- | src/demuxers/demux_real.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c index 624286102..eae1aa960 100644 --- a/src/demuxers/demux_real.c +++ b/src/demuxers/demux_real.c @@ -21,7 +21,7 @@ * For more information regarding the Real file format, visit: * http://www.pcisys.net/~melanson/codecs/ * - * $Id: demux_real.c,v 1.25 2002/12/14 20:00:38 guenter Exp $ + * $Id: demux_real.c,v 1.26 2002/12/15 21:23:39 guenter Exp $ */ #ifdef HAVE_CONFIG_H @@ -641,18 +641,6 @@ static void check_newpts (demux_real_t *this, int64_t pts, int video, int previe if (!preview && pts ) this->last_pts[video] = pts; - -#if 0 - /* use pts for bitrate measurement */ - - if (pts>180000) { - this->avg_bitrate = this->input->get_current_pos (this->input) * 8 * 90000/ pts; - - if (this->avg_bitrate<1) - this->avg_bitrate = 1; - - } -#endif } static int stream_read_char (demux_real_t *this) { @@ -802,7 +790,7 @@ static int demux_real_send_chunk(demux_plugin_t *this_gen) { buf = this->video_fifo->buffer_pool_alloc (this->video_fifo); buf->content = buf->mem; - buf->pts = timestamp*90; + buf->pts = pts; buf->input_pos = this->input->get_current_pos (this->input); buf->input_time = buf->input_pos * 8 / this->avg_bitrate ; @@ -883,7 +871,7 @@ static int demux_real_send_chunk(demux_plugin_t *this_gen) { buf = this->audio_fifo->buffer_pool_alloc (this->audio_fifo); buf->content = buf->mem; - buf->pts = timestamp*90; + buf->pts = pts; buf->input_pos = this->input->get_current_pos (this->input); buf->input_time = buf->input_pos * 8 / this->avg_bitrate ; buf->type = this->audio_buf_type; |