From b146d9af218bac99a3d017b801c397f8f615c9f5 Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Sat, 17 May 2003 23:02:15 +0000 Subject: Fix segfaults when liba52 is sent badly demuxed packs. Still need to fix demux_avi.c so that it does not send bad packs. CVS patchset: 4870 CVS date: 2003/05/17 23:02:15 --- src/liba52/xine_decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/liba52/xine_decoder.c b/src/liba52/xine_decoder.c index 720983acb..d12036319 100644 --- a/src/liba52/xine_decoder.c +++ b/src/liba52/xine_decoder.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: xine_decoder.c,v 1.51 2003/05/10 00:50:50 jcdutton Exp $ + * $Id: xine_decoder.c,v 1.52 2003/05/17 23:02:15 jcdutton Exp $ * * stuff needed to turn liba52 into a xine decoder plugin */ @@ -398,7 +398,7 @@ void a52dec_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { #ifdef LOG printf ("liba52: processing...state %d\n", this->sync_state); #endif - while (current != end) { + while (current < end) { switch (this->sync_state) { case 0: /* Looking for sync header */ this->syncword = (this->syncword << 8) | *current++; -- cgit v1.2.3