shithub: aacdec

Download patch

ref: 6aed840902284cb896d253801e0b078f06018c9d
parent: 043d37b60cdded2abed7c4054f954e6f9f5cada6
author: Michał Janiszewski <janisozaur@gmail.com>
date: Wed Nov 13 19:51:18 EST 2019

Use unsigned integers correctly

--- a/libfaad/decoder.c
+++ b/libfaad/decoder.c
@@ -239,7 +239,7 @@
     while (ld->bytes_left)
     {
         bits = faad_latm_frame(latm, ld);
-        if(bits==-1U)
+        if(bits==0xFFFFFFFF)
             bad++;
         else
         {
--- a/libfaad/syntax.c
+++ b/libfaad/syntax.c
@@ -2644,5 +2644,5 @@
             return (len*8)-(endpos-initpos);
         //faad_getbits(ld, initpos-endpos); //go back to initpos, but is valid a getbits(-N) ? 
     }
-    return -1U;
+    return 0xFFFFFFFF;
 }