Skip to content

Commit

Permalink
Merge pull request #43 from janisozaur/uint
Browse files Browse the repository at this point in the history
Use unsigned integers correctly
  • Loading branch information
fabiangreffrath authored Nov 14, 2019
2 parents 481c19e + 6aed840 commit 7bee9cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libfaad/decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ static int latmCheck(latm_header *latm, bitfile *ld)
while (ld->bytes_left)
{
bits = faad_latm_frame(latm, ld);
if(bits==-1U)
if(bits==0xFFFFFFFF)
bad++;
else
{
Expand Down
2 changes: 1 addition & 1 deletion libfaad/syntax.c
Original file line number Diff line number Diff line change
Expand Up @@ -2644,5 +2644,5 @@ uint32_t faad_latm_frame(latm_header *latm, bitfile *ld)
return (len*8)-(endpos-initpos);
//faad_getbits(ld, initpos-endpos); //go back to initpos, but is valid a getbits(-N) ?
}
return -1U;
return 0xFFFFFFFF;
}

0 comments on commit 7bee9cc

Please sign in to comment.