summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2003-05-17 23:02:15 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2003-05-17 23:02:15 +0000
commitb146d9af218bac99a3d017b801c397f8f615c9f5 (patch)
tree1007e1c0137c212c2ba95e5337851b4fd3da2ddb
parent09bd533cd8f40a94af51d6a4703583e2c863f359 (diff)
downloadxine-lib-b146d9af218bac99a3d017b801c397f8f615c9f5.tar.gz
xine-lib-b146d9af218bac99a3d017b801c397f8f615c9f5.tar.bz2
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
-rw-r--r--src/liba52/xine_decoder.c4
1 files 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++;