From 244b2cd15d09de53613243386b274a474284e2d2 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Fri, 1 Nov 2002 01:47:51 +0000 Subject: use pts values only internally CVS patchset: 3120 CVS date: 2002/11/01 01:47:51 --- src/demuxers/demux_mpgaudio.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/demuxers/demux_mpgaudio.c b/src/demuxers/demux_mpgaudio.c index f6f6da1a6..3ac857d29 100644 --- a/src/demuxers/demux_mpgaudio.c +++ b/src/demuxers/demux_mpgaudio.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_mpgaudio.c,v 1.73 2002/10/28 03:24:43 miguelfreitas Exp $ + * $Id: demux_mpgaudio.c,v 1.74 2002/11/01 01:47:51 guenter Exp $ * * demultiplexer for mpeg audio (i.e. mp3) streams * @@ -288,13 +288,12 @@ static int demux_mpgaudio_next (demux_mpgaudio_t *this, int decoder_flags) { } } - if (this->bitrate) { pts = (90000 * buffer_pos) / (this->bitrate * 1000 / 8); check_newpts(this, pts); } - /*buf->pts = 0;*/ + buf->pts = 0; buf->input_pos = this->input->get_current_pos(this->input); { int len = this->input->get_length(this->input); @@ -303,7 +302,9 @@ static int demux_mpgaudio_next (demux_mpgaudio_t *this, int decoder_flags) { else buf->input_time = pts / 90000; } +#if 0 buf->pts = pts; +#endif buf->type = BUF_AUDIO_MPEG; buf->decoder_info[0] = 1; buf->decoder_flags = decoder_flags; -- cgit v1.2.3