pineapple/externals/vcpkg/ports/faad2/0002-Fix-unary-minus.patch
2022-07-23 03:01:36 +02:00

24 lines
776 B
Diff
Executable file

diff --git a/libfaad/decoder.c b/libfaad/decoder.c
index 4f4b011..9bed248 100644
--- a/libfaad/decoder.c
+++ b/libfaad/decoder.c
@@ -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
{
diff --git a/libfaad/syntax.c b/libfaad/syntax.c
index c992543..be8c541 100644
--- a/libfaad/syntax.c
+++ b/libfaad/syntax.c
@@ -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;
}