From b145276a3d0ddadfba39717dfb8bed3b87554fe2 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 9 Apr 2004 16:07:10 +0000 Subject: fix playing LPCM (tag preview pack) - fix Fever.vob CVS patchset: 6365 CVS date: 2004/04/09 16:07:10 --- src/demuxers/demux_mpeg.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c index f18083610..b9d2ac18d 100644 --- a/src/demuxers/demux_mpeg.c +++ b/src/demuxers/demux_mpeg.c @@ -19,7 +19,7 @@ */ /* - * $Id: demux_mpeg.c,v 1.135 2004/03/03 20:09:11 mroi Exp $ + * $Id: demux_mpeg.c,v 1.136 2004/04/09 16:07:10 miguelfreitas Exp $ * * demultiplexer for mpeg 1/2 program streams * reads streams of variable blocksizes @@ -382,6 +382,14 @@ static void parse_mpeg2_packet (demux_mpeg_t *this, int stream_id, int64_t scr) check_newpts( this, pts, PTS_AUDIO ); + if (this->preview_mode) + buf->decoder_flags |= BUF_FLAG_PREVIEW; + + buf->extra_info->input_pos = this->input->get_current_pos (this->input); + if (this->rate) + buf->extra_info->input_time = (int)((int64_t)buf->extra_info->input_pos + * 1000 / (this->rate * 50)); + if(this->audio_fifo) this->audio_fifo->put (this->audio_fifo, buf); else -- cgit v1.2.3