diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-16 22:25:53 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-16 22:25:53 +0000 |
commit | 55f9a4782bea7a85936b9b2ef3a5a3ddb6fbcde2 (patch) | |
tree | f9fe91793d7f31660e6a10d87e3c139c518777e1 /src/demuxers/demux_mpeg.c | |
parent | 68382d7610afa761e03aa64f0dfb5027f227be6c (diff) | |
download | xine-lib-55f9a4782bea7a85936b9b2ef3a5a3ddb6fbcde2.tar.gz xine-lib-55f9a4782bea7a85936b9b2ef3a5a3ddb6fbcde2.tar.bz2 |
- 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
Diffstat (limited to 'src/demuxers/demux_mpeg.c')
-rw-r--r-- | src/demuxers/demux_mpeg.c | 29 |
1 files changed, 1 insertions, 28 deletions
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) ; |