flac.git
7 days agolibFLAC/lpc.c: Fix signed integer overflow master
Erik de Castro Lopo [Sun, 25 Aug 2019 07:59:02 +0000 (17:59 +1000)]
libFLAC/lpc.c: Fix signed integer overflow

Do the addition as 64 bits before truncating to 32 bits.

Credit: Oss-Fuzz
Issue: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16459
Testcase: fuzzer_decoder-5728784602365952

7 days agolibFLAC/bitreader.c: Fix shift invoking undefined behaviour
Erik de Castro Lopo [Sun, 25 Aug 2019 07:50:36 +0000 (17:50 +1000)]
libFLAC/bitreader.c: Fix shift invoking undefined behaviour

Credit: Oss-Fuzz
Issue: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16464
Testcase: fuzzer_decoder-5663276452544512

7 days agolibFLAC/bitreader.c: Fix shift invoking undefined behaviour
Erik de Castro Lopo [Sun, 25 Aug 2019 07:24:47 +0000 (17:24 +1000)]
libFLAC/bitreader.c: Fix shift invoking undefined behaviour

Credit: Oss-Fuzz
Issue: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16458
Testcase: fuzzer_decoder-5649174900506624

7 days agolibFLAC/bitreader.c: Fix OOB read
Erik de Castro Lopo [Sun, 25 Aug 2019 06:14:53 +0000 (16:14 +1000)]
libFLAC/bitreader.c: Fix OOB read

Credit: OSS-Fuzz
Issue: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16457
Testcase: fuzzer_decoder-5076189185572864

8 days agoFix a number of gcc 9.2 compiler warnings
Erik de Castro Lopo [Sun, 15 Sep 2019 02:03:56 +0000 (12:03 +1000)]
Fix a number of gcc 9.2 compiler warnings

8 days agoRun libFLAC++ through clang-tidy.
Rosen Penev [Thu, 29 Aug 2019 20:57:03 +0000 (13:57 -0700)]
Run libFLAC++ through clang-tidy.

Applied the following suggestions:

modernize-deprecated-headers
google-readability-casting
google-readability-namespace-comments
readability-else-after-return

8 days agoFix function redefinition on arm-none-eabi compilers
oreo639 [Mon, 2 Sep 2019 17:48:47 +0000 (10:48 -0700)]
Fix function redefinition on arm-none-eabi compilers

8 days agowindow: fabs > fabsf and cos > cosf where it makes sense
Rosen Penev [Thu, 29 Aug 2019 21:40:57 +0000 (14:40 -0700)]
window: fabs > fabsf and cos > cosf where it makes sense

The f functions are faster. It seems the arguments are all floats.

8 days agoflac/utils: Add missing define
Rosen Penev [Fri, 30 Aug 2019 04:35:43 +0000 (21:35 -0700)]
flac/utils: Add missing define

wcswidth needs _XOPEN_SOURCE defined. Otherwise, no declaration.

4 weeks agoSwitch to utimensat for newer POSIX versions
Rosen Penev [Fri, 9 Aug 2019 20:01:05 +0000 (13:01 -0700)]
Switch to utimensat for newer POSIX versions

Some libcs like uClibc-ng can optionally disable deprecated functions.
utime is one of them. When done so, both the header and the function go
missing.

This fixes flac_utime to work in such a situation.

5 weeks agoFix build on FreeBSD PowerPC
pkubaj [Thu, 15 Aug 2019 10:27:19 +0000 (10:27 +0000)]
Fix build on FreeBSD PowerPC

Used the elf_aux_info function on FreeBSD and clarify that users of other
systems need to implement reading from AT_HWCAP2.

5 weeks agoFix metaflac under ctest.
Ralph Giles [Thu, 15 Aug 2019 15:53:09 +0000 (08:53 -0700)]
Fix metaflac under ctest.

The 1.3.3 release didn't update the version number in the cmake
build. It's too late to fix the release, but bringing the version
number into sync allows the metaflac test which verifies the
encoder's embedded version number to pass, giving us proper test
feedback on other changes to the development tree.

6 weeks agolibFLAC: Rename get_client_data_from_decoder function
Erik de Castro Lopo [Thu, 8 Aug 2019 08:20:14 +0000 (18:20 +1000)]
libFLAC: Rename get_client_data_from_decoder function

This function was added after the 1.3.2 release, but the name was bad
(missing "FLAC__" at the start) and the pointer returned should be 'const'.

6 weeks agoincrease required minimum cmake version to 3.9.
sezero [Mon, 5 Aug 2019 12:47:24 +0000 (15:47 +0300)]
increase required minimum cmake version to 3.9.

7 weeks agoDo not assume that sys/param.h defines MIN and MAX
sezero [Sun, 4 Aug 2019 23:00:40 +0000 (02:00 +0300)]
Do not assume that sys/param.h defines MIN and MAX

One such example is sys/param.h from MinGW.

7 weeks agodoc: Add xmlns attributes.
Ralph Giles [Mon, 5 Aug 2019 00:36:58 +0000 (17:36 -0700)]
doc: Add xmlns attributes.

validator.w3.org wants a namespace declaration for xhtml.

7 weeks agoVersion 1.3.3 1.3.3
Erik de Castro Lopo [Sat, 13 Jul 2019 08:29:43 +0000 (18:29 +1000)]
Version 1.3.3

7 weeks agodoc: Remove xhtml validator links.
Fabian Greffrath [Tue, 30 Jul 2019 23:20:27 +0000 (16:20 -0700)]
doc: Remove xhtml validator links.

Fix "privacy-breach-w3c-valid-html" lintian error.

Don't ping an external site when loading documentation
pages since this can be used to track user activity.

These links are also broken, since they depend on the
referer header, which browsers no longer send to insecure
pages for similar privacy reasons. That aspect could be
addressed by using https urls for the validator site.

Signed-off-by: Ralph Giles <giles@thaumas.net>
7 weeks agodoc: Use empty-element <hr/> tag.
Ralph Giles [Tue, 30 Jul 2019 21:41:23 +0000 (14:41 -0700)]
doc: Use empty-element <hr/> tag.

Improve the conformance of the xhtml generated by doxygen by
using the self-closing <hr/> tag in the custom footer.

Without this, xmllint complains about </body> and </html> end
tags inside the still-only <hr>. That syntax is allowed in
html but not xml.

7 weeks ago.travis.yml: Generate and validate html documentation.
Ralph Giles [Tue, 30 Jul 2019 17:30:21 +0000 (10:30 -0700)]
.travis.yml: Generate and validate html documentation.

Install Doxygen when running on the linux environment to test
generation of the API documentation.

Run the included static html documentation as well as the
generated API documentation through xmllint to verify
it conforms to the declared DTD. Since this this will be very
slow or fail relying on network resources, also install
the w3c-sgml library so the xhtml1 DTDs are available locally.

We're checking the source files, not build results in the
particular environment, so it's fine to run this check
on only a subset of builds.

Don't validate on CMake builds since they're not currently
generating API documentation even when Doxygen is available.

2 months agoAdd -lrt for all operating systems for clock_gettime
Dagobert Michelsen [Tue, 16 Jul 2019 11:36:12 +0000 (13:36 +0200)]
Add -lrt for all operating systems for clock_gettime

2 months agoUpdate Visual Studio 2005 files
Erik de Castro Lopo [Mon, 15 Jul 2019 21:53:34 +0000 (07:53 +1000)]
Update Visual Studio 2005 files

Patch-from: Janne Hyvärinen

2 months agoFix CppCheck warnings
Erik de Castro Lopo [Sun, 14 Jul 2019 00:02:07 +0000 (10:02 +1000)]
Fix CppCheck warnings

2 months agotest: Ignore varying length in metadata
Erik de Castro Lopo [Sat, 13 Jul 2019 08:29:34 +0000 (18:29 +1000)]
test: Ignore varying length in metadata

The metadata test checked for specific lengths which change from 5 bytes for
something like "1.3.2" to 9 bytes for something like "1.3.3pre1".

3 months agoFix CMake configure warning
evpobr [Fri, 31 May 2019 14:08:18 +0000 (19:08 +0500)]
Fix CMake configure warning

Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when
 unquoted.

3 months agoFixed #107: CMake error without enabling BUILD_CXXLIBS
Vitaliy Kirsanov [Fri, 31 May 2019 06:25:21 +0000 (09:25 +0300)]
Fixed #107: CMake error without enabling BUILD_CXXLIBS

3 months agoCMake: fixed windows_unicode_filenames linking errors
Виталий Кирсанов [Mon, 27 May 2019 18:05:12 +0000 (21:05 +0300)]
CMake: fixed windows_unicode_filenames linking errors

4 months agoFix Visual Studio solution generation with CMake
evpobr [Sat, 11 May 2019 08:55:33 +0000 (13:55 +0500)]
Fix Visual Studio solution generation with CMake

Rename flac application target to flacapp to avoid name collision with FLAC library target.

Closes #101.

4 months agoAdded README description for CMake
Vitaliy Kirsanov [Tue, 30 Apr 2019 22:07:09 +0000 (01:07 +0300)]
Added README description for CMake

4 months agoCMAKE_BUILD_TYPE set to Release by default: improved
Vitaliy Kirsanov [Tue, 30 Apr 2019 11:46:12 +0000 (14:46 +0300)]
CMAKE_BUILD_TYPE set to Release by default: improved

4 months agoEnable components search in package config mode
evpobr [Tue, 30 Apr 2019 10:35:17 +0000 (15:35 +0500)]
Enable components search in package config mode

4 months agoCMAKE_BUILD_TYPE set to Release by default
Vitaliy Kirsanov [Tue, 30 Apr 2019 10:20:23 +0000 (13:20 +0300)]
CMAKE_BUILD_TYPE set to Release by default

4 months agoAdded ECHO_C to CMake tests
Vitaliy Kirsanov [Tue, 30 Apr 2019 09:44:15 +0000 (12:44 +0300)]
Added ECHO_C to CMake tests

4 months agoOgg::Ogg renamed to Ogg::ogg
Vitaliy Kirsanov [Mon, 29 Apr 2019 10:28:55 +0000 (13:28 +0300)]
Ogg::Ogg renamed to Ogg::ogg

4 months agoUse of BUILD_SHARED_LIBS added
Vitaliy Kirsanov [Mon, 29 Apr 2019 09:48:24 +0000 (12:48 +0300)]
Use of BUILD_SHARED_LIBS added

4 months agoFixed dependencies on win_utf8_io
Виталий Кирсанов [Fri, 26 Apr 2019 20:38:10 +0000 (23:38 +0300)]
Fixed dependencies on win_utf8_io

4 months agoFixed dependency between grabbag and utf8
Vitaliy Kirsanov [Thu, 25 Apr 2019 14:27:09 +0000 (17:27 +0300)]
Fixed dependency between grabbag and utf8

4 months agoCMake minimum required lowered to 3.1
Vitaly Kirsanov [Thu, 25 Apr 2019 14:14:28 +0000 (14:14 +0000)]
CMake minimum required lowered to 3.1

4 months agoAdd missing fseeko check
evpobr [Thu, 25 Apr 2019 07:28:56 +0000 (12:28 +0500)]
Add missing fseeko check

4 months agoIntegrate CMake to Travis CI tests
evpobr [Thu, 25 Apr 2019 04:48:15 +0000 (09:48 +0500)]
Integrate CMake to Travis CI tests

* Add CMake builds with ENABLE_64_BIT_WORDS enabled\disabled
* Run tests in parallel jobs
* Use Xenial Travis image to support CMake >= 3.12
* Install libtool-bin package missing in Xenial image

4 months agoFLAC now depends on win_utf8_io
Vitaliy Kirsanov [Sun, 14 Apr 2019 08:17:08 +0000 (11:17 +0300)]
FLAC now depends on win_utf8_io

Accidently found this missing dependency

4 months agoAdded /arch:SSE2 flag
Vitaly Kirsanov [Fri, 12 Apr 2019 20:11:06 +0000 (23:11 +0300)]
Added /arch:SSE2 flag

4 months agoVersions for shared libs specified
Vitaly Kirsanov [Fri, 12 Apr 2019 19:16:45 +0000 (22:16 +0300)]
Versions for shared libs specified

4 months agoCosmetic change: using $<COMPILE_LANGUAGE:>
Vitaliy Kirsanov [Tue, 9 Apr 2019 10:21:07 +0000 (13:21 +0300)]
Cosmetic change: using $<COMPILE_LANGUAGE:>

4 months ago/test/*.sh enabled for CTest in UNIX
Vitaliy Kirsanov [Mon, 8 Apr 2019 04:36:05 +0000 (07:36 +0300)]
/test/*.sh enabled for CTest in UNIX

4 months agoFindOGG.cmake module added
Vitaliy Kirsanov [Sun, 7 Apr 2019 09:37:56 +0000 (12:37 +0300)]
FindOGG.cmake module added

4 months agoCMake support added
Vitaliy Kirsanov [Sun, 31 Mar 2019 20:04:45 +0000 (23:04 +0300)]
CMake support added

6 months agoUse MMX ASM fucntions instead of SSE4.1 if available
lvqcl [Sat, 2 Mar 2019 20:56:03 +0000 (23:56 +0300)]
Use MMX ASM fucntions instead of SSE4.1 if available

These SSE4.1 functions are not always faster than their MMX ASM counterparts,
so let's use ASM functions if they're available.

6 months agoSpeed up FLAC__bitwriter_write_byte_block (metadata writing)
Robert Kausch [Sat, 2 Mar 2019 17:06:46 +0000 (18:06 +0100)]
Speed up FLAC__bitwriter_write_byte_block (metadata writing)

7 months agoSuppress compression failure message if it is not an error
Karthik Periagaram [Fri, 1 Feb 2019 04:51:30 +0000 (20:51 -0800)]
Suppress compression failure message if it is not an error

If the user specifies `--no-error-on-compression-fail`, there is no need
to treat compression failure as an error. Hence, the failure message
should be suppressed along with the non-zero exit code (which already
is suppressed).

12 months agoReplace hadd with shuffle + add
lvqcl [Wed, 19 Sep 2018 17:03:37 +0000 (20:03 +0300)]
Replace hadd with shuffle + add

12 months agoCosmetic changes in lpc_asm.nasm and utf8.c
lvqcl [Fri, 31 Aug 2018 19:45:38 +0000 (22:45 +0300)]
Cosmetic changes in lpc_asm.nasm and utf8.c

12 months agoUpdate MinGW build files
lvqcl [Sat, 25 Aug 2018 13:59:21 +0000 (16:59 +0300)]
Update MinGW build files

12 months agoMove CreateFile_utf8 function to a more logical place
lvqcl [Sat, 25 Aug 2018 07:23:39 +0000 (10:23 +0300)]
Move CreateFile_utf8 function to a more logical place

13 months agoAdd VSX optimised versions of autocorrelation loops
Anton Blanchard [Sat, 7 Jul 2018 04:21:46 +0000 (14:21 +1000)]
Add VSX optimised versions of autocorrelation loops

Add a POWER8 and POWER9 version of the autocorrelation functions.

flac --best is about 3.3x faster on POWER9 with this patch.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
13 months agoAdd runtime detection of POWER8 and POWER9
Anton Blanchard [Sat, 7 Jul 2018 00:49:59 +0000 (10:49 +1000)]
Add runtime detection of POWER8 and POWER9

Use getauxval() to determine if we are on POWER8 or POWER9 or newer.
POWER8 is represented by version 2.07 and POWER9 by version 3.00.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
13 months agoCheck if compiler supports target attribute on ppc64
Amitay Isaacs [Mon, 9 Jul 2018 02:38:47 +0000 (12:38 +1000)]
Check if compiler supports target attribute on ppc64

Check if the compiler supports __attribute__((target("cpu=power8")))
and __attribute__((target("cpu=power9")))

Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
13 months agoAdd m4 macro to check for C __attribute__ features
Amitay Isaacs [Tue, 10 Jul 2018 04:38:50 +0000 (14:38 +1000)]
Add m4 macro to check for C __attribute__ features

Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
13 months agoconfigure.ac: Fix FLAC__CPU_PPC on little endian, and add FLAC__CPU_PPC64
Anton Blanchard [Sun, 8 Jul 2018 04:56:31 +0000 (14:56 +1000)]
configure.ac: Fix FLAC__CPU_PPC on little endian, and add FLAC__CPU_PPC64

FLAC__CPU_PPC wasn't catching powerpcle or powerpc64le. Fix that and
add a new define for FLAC__CPU_PPC64.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
13 months agoconfigure.ac: Add VSX enable/disable
Anton Blanchard [Sun, 8 Jul 2018 04:55:03 +0000 (14:55 +1000)]
configure.ac: Add VSX enable/disable

We want to create functions with PowerPC VSX instructions, so add
a configure check.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
13 months agoconfigure.ac: Remove SPE detection code
Anton Blanchard [Sat, 7 Jul 2018 00:16:04 +0000 (10:16 +1000)]
configure.ac: Remove SPE detection code

We don't have any SPE code, so there's no need to detect it
at configure time.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
13 months agomove CreateFile function outside of libFLAC
lvqcl [Sat, 18 Aug 2018 10:59:51 +0000 (13:59 +0300)]
move CreateFile function outside of libFLAC

13 months agowindows_unicode_filenames.c: Fix a missing return statement
Erik de Castro Lopo [Fri, 17 Aug 2018 23:44:24 +0000 (09:44 +1000)]
windows_unicode_filenames.c: Fix a missing return statement

15 months agoImprove SIMD detection with Visual Studio
evpobr [Thu, 10 May 2018 16:25:14 +0000 (21:25 +0500)]
Improve SIMD detection with Visual Studio

Visual Studio can use GCC (for Android) and Clang (supported toolset) so they must be checked before native compiler.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
15 months agoAdd output-prefix tests
orbea [Tue, 5 Jun 2018 04:00:06 +0000 (21:00 -0700)]
Add output-prefix tests

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
15 months agoFix --output-prefix with input-files in sub-directories
orbea [Tue, 29 May 2018 18:58:51 +0000 (11:58 -0700)]
Fix --output-prefix with input-files in sub-directories

And make sure to reserve the whole file path when not using --output-prefix.

Fixes https://sourceforge.net/p/flac/bugs/463/
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
16 months agoFix miscellaneous typos.
luz.paz [Tue, 22 May 2018 14:17:53 +0000 (10:17 -0400)]
Fix miscellaneous typos.

Found via `codespell -q 3`

16 months ago.travis.yml: Simplify file structure and add libogg dependency.
Robert Kausch [Sun, 20 May 2018 10:00:16 +0000 (12:00 +0200)]
.travis.yml: Simplify file structure and add libogg dependency.

16 months agoAdd unit tests for word-wise CRC16 functions
Robert Kausch [Sun, 20 May 2018 08:56:15 +0000 (10:56 +0200)]
Add unit tests for word-wise CRC16 functions

Update FLAC__BitReader structure in unit test.

16 months agoFix CRC calculation for small blocks.
Robert Kausch [Mon, 30 Apr 2018 16:09:51 +0000 (18:09 +0200)]
Fix CRC calculation for small blocks.

16 months agoUpdate CRC16 for larger data blocks when decoding.
Robert Kausch [Mon, 30 Apr 2018 10:13:46 +0000 (12:13 +0200)]
Update CRC16 for larger data blocks when decoding.

16 months agoImplement slicing-by-8 CRC16 algorithm.
Robert Kausch [Mon, 30 Apr 2018 09:54:39 +0000 (11:54 +0200)]
Implement slicing-by-8 CRC16 algorithm.

16 months ago.travis.yml: Run --enable-64-bit-words test in separate job.
Robert Kausch [Sat, 19 May 2018 09:32:54 +0000 (11:32 +0200)]
.travis.yml: Run --enable-64-bit-words test in separate job.

16 months agoAdd bitreader unit test.
Robert Kausch [Sat, 19 May 2018 00:26:43 +0000 (02:26 +0200)]
Add bitreader unit test.

16 months agoMinor fixes for bitwriter unit test.
Robert Kausch [Sat, 19 May 2018 00:26:25 +0000 (02:26 +0200)]
Minor fixes for bitwriter unit test.

16 months agoAdd unit tests for CRC calculation.
Robert Kausch [Fri, 18 May 2018 23:35:18 +0000 (01:35 +0200)]
Add unit tests for CRC calculation.

16 months agoRemove unused CRC8 functions.
Robert Kausch [Mon, 30 Apr 2018 09:39:28 +0000 (11:39 +0200)]
Remove unused CRC8 functions.

16 months agoFix more GCC warnings about case fall-through
Erik de Castro Lopo [Sun, 6 May 2018 05:40:03 +0000 (15:40 +1000)]
Fix more GCC warnings about case fall-through

Patch-from: lvqcl <lvqcl.mail@gmail.com>

16 months agoMore generic version of MSVC bug workaround
Erik de Castro Lopo [Sun, 6 May 2018 05:25:11 +0000 (15:25 +1000)]
More generic version of MSVC bug workaround

This is an updtate to the fix for an MSVC 2015 bug in 94a61241b0.

Patch-from: lvqcl <lvqcl.mail@gmail.com>

16 months ago.travis.yml: Test --enable-64-bit-words as well topic/travis
Erik de Castro Lopo [Mon, 30 Apr 2018 19:58:25 +0000 (05:58 +1000)]
.travis.yml: Test --enable-64-bit-words as well

17 months agoreplaygain_synthesis.c: Fix compile issue in MSVS
Jeffrey Espiritu [Sun, 8 Apr 2018 20:21:19 +0000 (16:21 -0400)]
replaygain_synthesis.c: Fix compile issue in MSVS

The `inline` keyword is only available in C++ so include `share/compat.h`.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
19 months agoFix for missing WINAPI_FAMILY_PARTITION
Erik de Castro Lopo [Sat, 10 Feb 2018 02:37:52 +0000 (13:37 +1100)]
Fix for missing WINAPI_FAMILY_PARTITION

This is macro identifier is not defined, define it to `0`.

20 months agolibFLAC : new function returns client_data from decoder
Christophe DUMONT [Mon, 4 Dec 2017 10:38:37 +0000 (11:38 +0100)]
libFLAC : new function returns client_data from decoder

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
20 months agoUWP build fix
Alberto Fustinoni [Fri, 5 Jan 2018 06:39:04 +0000 (15:39 +0900)]
UWP build fix

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agoreplaygain_synthesis.c: Fix a cppcheck warning
Erik de Castro Lopo [Thu, 20 Jul 2017 09:41:55 +0000 (19:41 +1000)]
replaygain_synthesis.c: Fix a cppcheck warning

Cppcheck was incorrectly warning that `doubletmp` was being used
un-initialized. This was due to the fact that it was being used
and initialized in a pre-processor macro. Chaning the macro to
an inline function stops cppcheck from raising a warning.

2 years agoRevert "Add Clang support for FLAC__SSE_TARGET"
Erik de Castro Lopo [Wed, 19 Jul 2017 09:28:30 +0000 (19:28 +1000)]
Revert "Add Clang support for FLAC__SSE_TARGET"

This reverts commit b52fa0ec6dc83ec0f430ff7bd7c80485c45728b0.

See: https://github.com/xiph/flac/commit/b52fa0ec6dc83ec0f430ff7bd7c80485c45728b0

2 years agoAdd Clang support for FLAC__SSE_TARGET
C.W. Betts [Fri, 14 Jul 2017 17:20:19 +0000 (11:20 -0600)]
Add Clang support for FLAC__SSE_TARGET

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agoCorrect flattop window coefficients
Thomas Zander [Thu, 29 Jun 2017 18:43:33 +0000 (20:43 +0200)]
Correct flattop window coefficients

The window amplitude is now  normalised to 1.0.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agoFix GCC 7 case fall through warnings
Erik de Castro Lopo [Mon, 26 Jun 2017 09:22:28 +0000 (19:22 +1000)]
Fix GCC 7 case fall through warnings

GCC 7 warns about `case` statements which are not separated by a
`break` statement. This warning can be fixed by adding a comment.

2 years agoUpdate lpc_intrin_sse.c
Shark64 [Thu, 22 Jun 2017 14:48:44 +0000 (16:48 +0200)]
Update lpc_intrin_sse.c

Remove redundant assignment before broadcasting into xmm registers.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agoFLAC++: Add missing prototype for construct_block
Thomas Zander [Thu, 22 Jun 2017 18:10:09 +0000 (20:10 +0200)]
FLAC++: Add missing prototype for construct_block

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agoSilence -finline-functions warning
Thomas Zander [Thu, 22 Jun 2017 17:12:25 +0000 (19:12 +0200)]
Silence -finline-functions warning

This warning flag is gcc-specfic.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agodoc: Add notes about subframe sample size
Ruud van Asseldonk [Sun, 11 Jun 2017 11:16:27 +0000 (13:16 +0200)]
doc: Add notes about subframe sample size

2 years agoflac: Use WAVEFORMATEXTENSIBLE when bps != (8|16)
Erik de Castro Lopo [Sat, 27 May 2017 06:07:35 +0000 (16:07 +1000)]
flac: Use WAVEFORMATEXTENSIBLE when bps != (8|16)

When decoding to WAV, the legacy wFormatTag of WAVE_FORMAT_PCM should
only be used if the bitwidth is 8 or 16. For all other bitwidths,
use WAVEFORMATEXTENSIBLE.

Two of the test programs/scripts also needed updating.

2 years agoFix missing SIZE_MAX definition on Android
Erik de Castro Lopo [Wed, 3 May 2017 08:37:12 +0000 (18:37 +1000)]
Fix missing SIZE_MAX definition on Android

2 years agolibFLAC: Fix default flac_max/min
Erik de Castro Lopo [Wed, 19 Apr 2017 08:14:26 +0000 (18:14 +1000)]
libFLAC: Fix default flac_max/min

There were a number of specialized versions, but the default case
defined `MAX` and `MIN` instead of `flac_max` and `flac_min`.

2 years agoflac: Fix usage message
Erik de Castro Lopo [Sun, 16 Apr 2017 21:31:10 +0000 (07:31 +1000)]
flac: Fix usage message

Patch-from: "Michael W. Bombardieri" <mb@ii.net>

2 years agometaflac: Fix a memory leak
Erik de Castro Lopo [Sun, 9 Apr 2017 05:17:06 +0000 (15:17 +1000)]
metaflac: Fix a memory leak

2 years agostream_decoder.c: Fix a memory leak
Erik de Castro Lopo [Sat, 8 Apr 2017 08:34:49 +0000 (18:34 +1000)]
stream_decoder.c: Fix a memory leak

Leak reported by Secunia Research.

2 years agoFix typos in header files
Erik de Castro Lopo [Mon, 20 Mar 2017 18:39:26 +0000 (05:39 +1100)]
Fix typos in header files

Patch-from: lvqcl <lvqcl.mail@gmail.com>