Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
external libs: rebuilt vorbis, ogg, and flac from newer sources.
- Loading branch information
Showing
494 changed files
with
3,743 additions
and
3,762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From 4f47b63e9c971e6391590caf00a0f2a5ed612e67 Mon Sep 17 00:00:00 2001 | ||
From: Erik de Castro Lopo <erikd@mega-nerd.com> | ||
Date: Sat, 8 Apr 2017 18:34:49 +1000 | ||
Subject: [PATCH 50/69] stream_decoder.c: Fix a memory leak | ||
|
||
Leak reported by Secunia Research. | ||
--- | ||
src/libFLAC/stream_decoder.c | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
--- a/src/libFLAC/stream_decoder.c | ||
+++ b/src/libFLAC/stream_decoder.c | ||
@@ -1759,6 +1759,9 @@ FLAC__bool read_metadata_vorbiscomment_( | ||
} | ||
memset (obj->comments[i].entry, 0, obj->comments[i].length) ; | ||
if (!FLAC__bitreader_read_byte_block_aligned_no_crc(decoder->private_->input, obj->comments[i].entry, obj->comments[i].length)) { | ||
+ /* Current i-th entry is bad, so we delete it. */ | ||
+ free (obj->comments[i].entry) ; | ||
+ obj->comments[i].entry = NULL ; | ||
obj->num_comments = i; | ||
goto skip; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 952c93b2d71c2172d7df8e0d6a9321eeb68cb37a Mon Sep 17 00:00:00 2001 | ||
From: Erik de Castro Lopo <erikd@mega-nerd.com> | ||
Date: Sun, 9 Apr 2017 15:17:06 +1000 | ||
Subject: [PATCH 51/69] metaflac: Fix a memory leak | ||
|
||
--- | ||
src/metaflac/operations.c | 4 +++- | ||
1 file changed, 3 insertions(+), 1 deletion(-) | ||
|
||
--- a/src/metaflac/operations.c | ||
+++ b/src/metaflac/operations.c | ||
@@ -286,7 +286,8 @@ FLAC__bool do_shorthand_operations_on_fi | ||
|
||
if(!FLAC__metadata_chain_read(chain, filename)) { | ||
print_error_with_chain_status(chain, "%s: ERROR: reading metadata", filename); | ||
- return false; | ||
+ ok = false; | ||
+ goto cleanup; | ||
} | ||
|
||
for(i = 0; i < options->ops.num_operations && ok; i++) { | ||
@@ -325,6 +326,7 @@ FLAC__bool do_shorthand_operations_on_fi | ||
print_error_with_chain_status(chain, "%s: ERROR: writing FLAC file", filename); | ||
} | ||
|
||
+ cleanup : | ||
FLAC__metadata_chain_delete(chain); | ||
|
||
return ok; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From: Erik de Castro Lopo <erikd@mega-nerd.com> | ||
Date: Mon, 2 Jan 2017 17:46:20 +0000 (+1100) | ||
Subject: libFLAC/cpu.c: Fix CPU detecton | ||
X-Git-Tag: 1.3.3~131 | ||
X-Git-Url: http://git.xiph.org/?p=flac.git;a=commitdiff_plain;h=230cffe08ff0c965de2ce111afe4513286bfda89 | ||
|
||
libFLAC/cpu.c: Fix CPU detecton | ||
|
||
Patch-from: Janne Hyvärinen <cse@sci.fi> | ||
--- | ||
|
||
diff --git a/src/libFLAC/cpu.c b/src/libFLAC/cpu.c | ||
index b9df19a9..808d55d7 100644 | ||
--- a/src/libFLAC/cpu.c | ||
+++ b/src/libFLAC/cpu.c | ||
@@ -269,9 +269,9 @@ void FLAC__cpu_info_x86(FLAC__uint32 level, FLAC__uint32 *eax, FLAC__uint32 *ebx | ||
__cpuid(cpuinfo, ext); | ||
if((unsigned)cpuinfo[0] >= level) { | ||
#if FLAC__AVX_SUPPORTED | ||
- __cpuidex(cpuinfo, ext, 0); /* for AVX2 detection */ | ||
+ __cpuidex(cpuinfo, level, 0); /* for AVX2 detection */ | ||
#else | ||
- __cpuid(cpuinfo, ext); /* some old compilers don't support __cpuidex */ | ||
+ __cpuid(cpuinfo, level); /* some old compilers don't support __cpuidex */ | ||
#endif | ||
|
||
*eax = cpuinfo[0]; *ebx = cpuinfo[1]; *ecx = cpuinfo[2]; *edx = cpuinfo[3]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From: sezero <sezero@users.sourceforge.net> | ||
Date: Sun, 4 Aug 2019 23:00:40 +0000 (+0300) | ||
Subject: Do not assume that sys/param.h defines MIN and MAX | ||
X-Git-Url: http://git.xiph.org/?p=flac.git;a=commitdiff_plain;h=4a43f2bd4d7e12b5d994f48e18cf014008d204ce | ||
|
||
Do not assume that sys/param.h defines MIN and MAX | ||
|
||
One such example is sys/param.h from MinGW. | ||
--- | ||
|
||
diff --git a/src/libFLAC/include/private/macros.h b/src/libFLAC/include/private/macros.h | ||
index 02eada45..3a8072ec 100644 | ||
--- a/src/libFLAC/include/private/macros.h | ||
+++ b/src/libFLAC/include/private/macros.h | ||
@@ -51,8 +51,10 @@ | ||
/* Whatever other unix that has sys/param.h */ | ||
#elif defined(HAVE_SYS_PARAM_H) | ||
#include <sys/param.h> | ||
+#if defined(MIN) && defined(MAX) | ||
#define flac_max(a,b) MAX(a,b) | ||
#define flac_min(a,b) MIN(a,b) | ||
+#endif | ||
|
||
/* Windows VS has them in stdlib.h.. XXX:Untested */ | ||
#elif defined(_MSC_VER) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From: Erik de Castro Lopo <erikd@mega-nerd.com> | ||
Date: Fri, 13 Jan 2017 10:30:55 +0000 (+1100) | ||
Subject: libFLAC/cpu.c: Fix build issue on OpenBSD/i386 | ||
X-Git-Tag: 1.3.3~128 | ||
X-Git-Url: http://git.xiph.org/?p=flac.git;a=commitdiff_plain;h=6ecd1a2607a337638adb5caa67a61e7719e0e3a4 | ||
|
||
libFLAC/cpu.c: Fix build issue on OpenBSD/i386 | ||
|
||
Patch-from: Christian Weisgerber <naddy@mips.inka.de> | ||
--- | ||
|
||
diff --git a/src/libFLAC/cpu.c b/src/libFLAC/cpu.c | ||
index 808d55d7..12d46191 100644 | ||
--- a/src/libFLAC/cpu.c | ||
+++ b/src/libFLAC/cpu.c | ||
@@ -65,7 +65,7 @@ static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE = 0x02000000; | ||
static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE2 = 0x04000000; | ||
#endif | ||
|
||
-#if FLAC__HAS_X86INTRIN || FLAC__AVX_SUPPORTED | ||
+#if FLAC__HAS_X86INTRIN || FLAC__AVX_SUPPORTED || defined FLAC__HAS_NASM | ||
/* these are flags in ECX of CPUID AX=00000001 */ | ||
static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE3 = 0x00000001; | ||
static const unsigned FLAC__CPUINFO_IA32_CPUID_SSSE3 = 0x00000200; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From: sezero <sezero@users.sourceforge.net> | ||
Date: Sat, 14 Jan 2017 22:56:56 +0000 (+0300) | ||
Subject: libFLAC/cpu.c: Replace memory.h include with string.h | ||
X-Git-Tag: 1.3.3~117 | ||
X-Git-Url: http://git.xiph.org/?p=flac.git;a=commitdiff_plain;h=d178058028050aeec649c85644cc9eed08f0aa37 | ||
|
||
libFLAC/cpu.c: Replace memory.h include with string.h | ||
|
||
cpu.c was the only source to use memory.h instead of string.h. | ||
|
||
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com> | ||
--- | ||
|
||
diff --git a/src/libFLAC/cpu.c b/src/libFLAC/cpu.c | ||
index 1c80a728..6629fb95 100644 | ||
--- a/src/libFLAC/cpu.c | ||
+++ b/src/libFLAC/cpu.c | ||
@@ -37,7 +37,7 @@ | ||
#include "private/cpu.h" | ||
#include "share/compat.h" | ||
#include <stdlib.h> | ||
-#include <memory.h> | ||
+#include <string.h> | ||
|
||
#if defined(_MSC_VER) | ||
# include <intrin.h> /* for __cpuid() and _xgetbv() */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.