mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 11:28:59 +08:00
f33ec92a5b
FAAD2 lists its homepage as https://sourceforge.net/projects/faac/, but it links to https://github.com/knik0/faad2 as the place to send pull requests. This seems good enough for Debian[0] and Arch[1], and the SF hosts only a bit older versions, so I used the GitHub project as well. Note that though the project is named "faad2", the library name is just "faad" The embedded patches were all submitted and already merged upstream. [0] https://packages.debian.org/sid/faad [1] https://www.archlinux.org/packages/extra/x86_64/faad2/
25 lines
776 B
Diff
25 lines
776 B
Diff
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;
|
|
}
|