changeset 7405:c1d517db8d95

10l bug - 'len' was handled wrong. found by Anssi Saari <as@sci.fi>
author arpi
date Sun, 15 Sep 2002 15:50:28 +0000
parents f0dacd58604f
children 1394aebaa838
files libmpcodecs/ad_hwac3.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_hwac3.c	Sun Sep 15 14:20:24 2002 +0000
+++ b/libmpcodecs/ad_hwac3.c	Sun Sep 15 15:50:28 2002 +0000
@@ -80,8 +80,8 @@
 
 static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen)
 {
-  int len=-1;
-  if(!sh_audio->a_in_buffer_len)
+  int len=sh_audio->a_in_buffer_len;
+  if(len<=0)
     if((len=a52_fillbuff(sh_audio))<=0) return len; /*EOF*/
   sh_audio->a_in_buffer_len=0;