[MPlayer-cvslog] r20001 - trunk/libmpcodecs/ad_faad.c

nicodvb subversion at mplayerhq.hu
Wed Sep 27 23:45:15 CEST 2006


Author: nicodvb
Date: Wed Sep 27 23:45:15 2006
New Revision: 20001

Modified:
   trunk/libmpcodecs/ad_faad.c

Log:
in case of errors after decoding quit the main decoding 
loop before memmove() when sh_audio->in_buffer_len <= 0;
patch by Chandan Pitta chandan.pitta gmail com


Modified: trunk/libmpcodecs/ad_faad.c
==============================================================================
--- trunk/libmpcodecs/ad_faad.c	(original)
+++ trunk/libmpcodecs/ad_faad.c	Wed Sep 27 23:45:15 2006
@@ -243,6 +243,10 @@
     if(faac_finfo.error > 0) {
       mp_msg(MSGT_DECAUDIO,MSGL_WARN,"FAAD: error: %s, trying to resync!\n",
               faacDecGetErrorMessage(faac_finfo.error));
+      if (sh->a_in_buffer_len <= 0) {
+        errors = MAX_FAAD_ERRORS;
+        break;
+      }
       sh->a_in_buffer_len--;
       memmove(sh->a_in_buffer,&sh->a_in_buffer[1],sh->a_in_buffer_len);
       aac_sync(sh);



More information about the MPlayer-cvslog mailing list