From 55f9a4782bea7a85936b9b2ef3a5a3ddb6fbcde2 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Thu, 16 Jan 2003 22:25:53 +0000 Subject: - fix PVA buffer leaking problems - add generic mpeg-like wrap detection code to TS and PVA demuxers - now scr/pcr based wrap detection is used nowhere in xine, it's simply not reliable and caused too many problems (including recent freezing in demux_ts) CVS patchset: 3938 CVS date: 2003/01/16 22:25:53 --- src/demuxers/demux_mpeg.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'src/demuxers/demux_mpeg.c') diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c index a226a9bae..dea0f3eca 100644 --- a/src/demuxers/demux_mpeg.c +++ b/src/demuxers/demux_mpeg.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_mpeg.c,v 1.104 2003/01/10 21:11:00 miguelfreitas Exp $ + * $Id: demux_mpeg.c,v 1.105 2003/01/16 22:25:53 miguelfreitas Exp $ * * demultiplexer for mpeg 1/2 program streams * reads streams of variable blocksizes @@ -638,33 +638,6 @@ static uint32_t parse_pack(demux_mpeg_t *this) { buf = read_bytes (this, 3) ; } - /* discontinuity ? */ -#if 0 - /* scr-wrap detection disabled due bad streams */ - if( scr && !this->preview_mode ) - { - int64_t scr_diff = scr - this->last_scr; - - if (abs(scr_diff) > 60000 && !this->send_newpts) { - - buf_element_t *buf; - - buf = this->video_fifo->buffer_pool_alloc (this->video_fifo); - buf->type = BUF_CONTROL_DISCONTINUITY; - buf->disc_off = scr_diff; - this->video_fifo->put (this->video_fifo, buf); - - if (this->audio_fifo) { - buf = this->audio_fifo->buffer_pool_alloc (this->audio_fifo); - buf->type = BUF_CONTROL_DISCONTINUITY; - buf->disc_off = scr_diff; - this->audio_fifo->put (this->audio_fifo, buf); - } - } - this->last_scr = scr; - } -#endif - /* system header */ buf = read_bytes (this, 4) ; -- cgit v1.2.3