diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-11-01 01:47:51 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-11-01 01:47:51 +0000 |
commit | 244b2cd15d09de53613243386b274a474284e2d2 (patch) | |
tree | d198d7f3e9bd76f5e2cce84ad36cefc51a88744c | |
parent | 63763cc89db8b55534522240d2ff83dcf73a9e45 (diff) | |
download | xine-lib-244b2cd15d09de53613243386b274a474284e2d2.tar.gz xine-lib-244b2cd15d09de53613243386b274a474284e2d2.tar.bz2 |
use pts values only internally
CVS patchset: 3120
CVS date: 2002/11/01 01:47:51
-rw-r--r-- | src/demuxers/demux_mpgaudio.c | 7 |
1 files 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; |