summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* .travis.yml: Test --enable-64-bit-words as welltopic/travisErik de Castro Lopo2018-05-011-0/+1
|
* replaygain_synthesis.c: Fix compile issue in MSVSJeffrey Espiritu2018-04-091-0/+1
| | | | | | The `inline` keyword is only available in C++ so include `share/compat.h`. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Fix for missing WINAPI_FAMILY_PARTITIONErik de Castro Lopo2018-02-102-0/+5
| | | | This is macro identifier is not defined, define it to `0`.
* libFLAC : new function returns client_data from decoderChristophe DUMONT2018-01-082-0/+10
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* UWP build fixAlberto Fustinoni2018-01-061-0/+11
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* replaygain_synthesis.c: Fix a cppcheck warningErik de Castro Lopo2017-07-211-13/+18
| | | | | | | 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.
* Revert "Add Clang support for FLAC__SSE_TARGET"Erik de Castro Lopo2017-07-191-2/+1
| | | | | | This reverts commit b52fa0ec6dc83ec0f430ff7bd7c80485c45728b0. See: https://github.com/xiph/flac/commit/b52fa0ec6dc83ec0f430ff7bd7c80485c45728b0
* Add Clang support for FLAC__SSE_TARGETC.W. Betts2017-07-151-1/+2
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Correct flattop window coefficientsThomas Zander2017-07-011-1/+1
| | | | | | The window amplitude is now normalised to 1.0. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Fix GCC 7 case fall through warningsErik de Castro Lopo2017-06-265-275/+275
| | | | | GCC 7 warns about `case` statements which are not separated by a `break` statement. This warning can be fixed by adding a comment.
* Update lpc_intrin_sse.cShark642017-06-261-4/+4
| | | | | | Remove redundant assignment before broadcasting into xmm registers. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* FLAC++: Add missing prototype for construct_blockThomas Zander2017-06-231-0/+9
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Silence -finline-functions warningThomas Zander2017-06-232-4/+10
| | | | | | This warning flag is gcc-specfic. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* doc: Add notes about subframe sample sizeRuud van Asseldonk2017-06-121-1/+8
|
* flac: Use WAVEFORMATEXTENSIBLE when bps != (8|16)Erik de Castro Lopo2017-05-273-7/+3
| | | | | | | | 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.
* Fix missing SIZE_MAX definition on AndroidErik de Castro Lopo2017-05-033-0/+6
|
* libFLAC: Fix default flac_max/minErik de Castro Lopo2017-04-191-4/+4
| | | | | There were a number of specialized versions, but the default case defined `MAX` and `MIN` instead of `flac_max` and `flac_min`.
* flac: Fix usage messageErik de Castro Lopo2017-04-171-1/+1
| | | | Patch-from: "Michael W. Bombardieri" <mb@ii.net>
* metaflac: Fix a memory leakErik de Castro Lopo2017-04-091-1/+3
|
* stream_decoder.c: Fix a memory leakErik de Castro Lopo2017-04-081-0/+3
| | | | Leak reported by Secunia Research.
* Fix typos in header filesErik de Castro Lopo2017-03-213-3/+3
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* stream_decoder.h: Fix Reference to Non-Existent FunctionsKeegan Drake H.P2017-03-161-2/+1
| | | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com> Closes: https://github.com/xiph/flac/pull/31
* stream_decoder.h: Fix References to ``stdout''Keegan Drake H.P2017-03-161-2/+2
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* cpu.c: Fix LLVM compileErik de Castro Lopo2017-03-021-1/+1
| | | | | | Switch from `asm` to `__asm__` which is better supported. Patch-from: Olivier Tristan <o.tristan@uvi.net>
* cpu.c: Merge ia32 and x86_64 CPU info functionsErik de Castro Lopo2017-02-275-208/+172
| | | | | | | | After the removal of the OS SSE detection stuff ia32_cpu_info() and x86_64_cpu_info() became very similar. Merging them makes sense. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* cpu.c: Fix debug Windows w32 build issueErik de Castro Lopo2017-02-231-0/+2
| | | | | | Was failing to build without NASM. Patch-from: Olivier Tristan <o.tristan@uvi.net>
* stream_decoder.c: CommentsErik de Castro Lopo2017-02-221-8/+8
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* SIMD: remove outdated SSE2 codeErik de Castro Lopo2017-02-213-159/+0
| | | | | | | | | Removes FLAC__lpc_restore_signal_16_intrin_sse2() which was faster than than C code, but not faster than MMX-accelerated ASM functions. It's also slower than the new SSE4.1 functions that were added by the previous patch. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* SIMD: Accelerate decoding of 16 bit FLACErik de Castro Lopo2017-02-193-0/+198
| | | | | | | | | | | | This patch removes FLAC__lpc_restore_signal_16_intrin_sse2(). It's faster than C code, but not faster than MMX-accelerated ASM functions. It's also slower than the new SSE4.1 functions that were added by the previous patch. So this function wasn't very useful before, and now it's even less useful. I don't see a reason to keep it. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* SIMD: Improve decoding of some 24 bit filesErik de Castro Lopo2017-02-191-36/+57
| | | | | | | | | | Accelerates decoding of non-Subset 24-bit FLAC files (where lpc_order > 12). The improved function is FLAC__lpc_restore_signal_wide_intrin_sse41(). It requires SSE4.1 and it's used only by 32-bit libFLAC. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* SIMD: Add const qualifier where appropriateErik de Castro Lopo2017-02-193-8/+8
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* cpu.h: Another CPP fixupErik de Castro Lopo2017-02-191-45/+46
| | | | | CPP is minefield. We should simplify CPP wherever possible and work to minimise nesting.
* cpu.h: Fix compiler detectionErik de Castro Lopo2017-02-151-2/+2
| | | | | | GCC version 4.6 was throwing an error on `__has_attribute` which seems to be Clang specific. Solution was to un-nest the CPP code so that Clang is confirmed before the `__has_attribute` is hit.
* flac/encode.c: Fix an integer overflowErik de Castro Lopo2017-02-141-3/+3
| | | | | | | | | | | | | When encoding a 24 bit multichannel W64 file on a 32 bit system, a calculation could overflow resulting in a "got partial sample" error and early termination of the encoding process. The fix was to replace the cast to `size_t` (which is only 32 bits on a 32 bit system) with a cast to `uin64_t`. Thanks to Janne Hyvärinen for helping to track down the problem. Closes: https://sourceforge.net/p/flac/bugs/453
* stream encoder: fix documentation inconsistenciesChristian Stadelmann2017-02-131-3/+3
| | | | | | Fixes https://sourceforge.net/p/flac/bugs/452/ Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* cpu.h: Add #defines so Clang compiles AVX2Erik de Castro Lopo2017-02-121-4/+21
| | | | Patch-from: <lvqcl.mail@gmail.com>
* Fix compile with cygwinRosen Penev2017-02-095-15/+3
| | | | | | | | | The underscores are wrong. The comment is also correct. Also remove the configure.ac option. Otherwise it tries to compile the windows unicode stuff which POSIX(cygwin) does not understand. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* configure.ac: Clean up CFLAGS codeErik de Castro Lopo2017-02-062-21/+55
| | | | | | Also moves _FORTIFY_SOURCE detection to an M4 macro. Patchfrom: David Seifert <soap@gentoo.org>
* libFLAC/lpc_intrin_sse41.c: Change usage of _mm_alignr_epi8Erik de Castro Lopo2017-01-311-123/+88
| | | | | | | | | | | | Replace a = _mm_alignr_epi8(b, a, n); with a = _mm_alignr_epi8(a, b, n); The resulting code is very slightly faster and the binaries slightly smaller. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* libFLAC/lpc_intrin_sse*: Formatting cleanupErik de Castro Lopo2017-01-312-11/+9
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* FLAC__stream_encoder_finish: Sanity improvementErik de Castro Lopo2017-01-301-1/+3
| | | | | | Previously this function would abort or crash if passed `NULL` for the encoder. Now it just returns without crashing or aborting which is far more sane behaviour (ie much like FLAC__stream_encoder_delete).
* include/share/compat.h: Only define inline for CErik de Castro Lopo2017-01-241-1/+1
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Create .travis.ymlStephen2017-01-221-0/+9
| | | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com> Closes: https://github.com/xiph/flac/pull/28
* Do not override CFLAGS, as CFLAGS is a user flag.David Seifert2017-01-1910-46/+176
| | | | | | | | | * Furthermore, use NDEBUG globally to detect the presence of building with more debug output information. AX_CHECK_ENABLE_DEBUG is easier to use, and nowadays Gnome has also switched to it from its own custom solution. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Fix cppcheck warningsRosen Penev2017-01-196-15/+15
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* share/utf8/charset.c: Cleanup realloc() usageErik de Castro Lopo2017-01-191-3/+5
| | | | | | This version should be logically identical to the previous version but prevents a false-positive from the cppcheck static analysis tool.
* Add missing file include/share/msvc2005_int.hErik de Castro Lopo2017-01-191-0/+53
|
* stdint.h fixes for MSVS 2005/2008Erik de Castro Lopo2017-01-1929-17/+61
| | | | | | | This adds a new msvc2005_int.h header file which is "force included" as needed by the MSVS project file. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* metadata.h: Fix search/replace typo in commentsErik de Castro Lopo2017-01-171-1/+1
|
* getopt.c: Pointer comparison fixErik de Castro Lopo2017-01-171-4/+2
| | | | | | | * Remove <stdint.h> because MSVC 2005 (and probably 2008) don't have it. * Fix pointer difference caclulation between `nameend` and `nextchar`. Patch-from: lvqcl <lvqcl.mail@gmail.com>