shithub: aacdec

Download patch

ref: d15dbae160ab2a27b43bd78e2fdcfb6484659ae8
parent: facf1c46148257b9fc33c4b5552e187bd7e5f461
author: menno <menno>
date: Sat Mar 29 17:10:24 EDT 2008

workaround for latm bug

--- a/libfaad/decoder.c
+++ b/libfaad/decoder.c
@@ -25,7 +25,7 @@
 ** Commercial non-GPL licensing of this software is possible.
 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
 **
-** $Id: decoder.c,v 1.112 2008/03/23 23:03:28 menno Exp $
+** $Id: decoder.c,v 1.113 2008/03/29 21:10:24 menno Exp $
 **/
 
 #include "common.h"
@@ -209,7 +209,7 @@
 {
     uint32_t good=0, bad=0, bits, m;
 
-    while(!ld->error)
+    while (ld->bytes_left)
     {
         bits = faad_latm_frame(latm, ld);
         if(bits==-1U)
--- a/libfaad/syntax.c
+++ b/libfaad/syntax.c
@@ -25,7 +25,7 @@
 ** Commercial non-GPL licensing of this software is possible.
 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
 **
-** $Id: syntax.c,v 1.90 2008/03/23 23:03:29 menno Exp $
+** $Id: syntax.c,v 1.91 2008/03/29 21:10:24 menno Exp $
 **/
 
 /*
@@ -2608,7 +2608,7 @@
     uint32_t initpos, endpos, firstpos, ret;
 
     firstpos = faad_get_processed_bits(ld);
-    while(!ld->error)
+    while (ld->bytes_left)
     {
         faad_byte_align(ld);
         if(faad_showbits(ld, 11) != 0x2B7)