shithub: aacdec

Download patch

ref: 7bee9cc1b4bfbe3e379485ea3c02826132e19e04
parent: 481c19ef75d8c5d5b2e43d4a69efb52a1125e138
parent: 6aed840902284cb896d253801e0b078f06018c9d
author: Fabian Greffrath <fabian@greffrath.com>
date: Thu Nov 14 05:25:23 EST 2019

Merge pull request #43 from janisozaur/uint

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;
 }