flac.git
11 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.

11 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.

11 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.

11 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.

11 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.

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

11 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.

11 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.

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

11 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>

11 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>

11 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

12 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>
14 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`.

15 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>
15 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>
21 months 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.

21 months 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

21 months 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>
21 months 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>
21 months 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.

21 months 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>
22 months 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>
22 months 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>
22 months 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

22 months 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.

23 months 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>

2 years agostream_decoder.h: Fix Reference to Non-Existent Functions
Keegan Drake H.P [Wed, 15 Mar 2017 23:20:14 +0000 (18:20 -0500)]
stream_decoder.h: Fix Reference to Non-Existent Functions

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Closes: https://github.com/xiph/flac/pull/31

2 years agostream_decoder.h: Fix References to ``stdout''
Keegan Drake H.P [Wed, 15 Mar 2017 23:15:07 +0000 (18:15 -0500)]
stream_decoder.h: Fix References to ``stdout''

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agocpu.c: Fix LLVM compile
Erik de Castro Lopo [Wed, 1 Mar 2017 19:40:25 +0000 (06:40 +1100)]
cpu.c: Fix LLVM compile

Switch from `asm` to `__asm__` which is better supported.

Patch-from: Olivier Tristan <o.tristan@uvi.net>

2 years agocpu.c: Merge ia32 and x86_64 CPU info functions
Erik de Castro Lopo [Mon, 27 Feb 2017 09:35:21 +0000 (20:35 +1100)]
cpu.c: Merge ia32 and x86_64 CPU info functions

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>

2 years agocpu.c: Fix debug Windows w32 build issue
Erik de Castro Lopo [Thu, 23 Feb 2017 07:58:44 +0000 (18:58 +1100)]
cpu.c: Fix debug Windows w32 build issue

Was failing to build without NASM.

Patch-from: Olivier Tristan <o.tristan@uvi.net>

2 years agostream_decoder.c: Comments
Erik de Castro Lopo [Tue, 21 Feb 2017 19:16:38 +0000 (06:16 +1100)]
stream_decoder.c: Comments

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

2 years agoSIMD: remove outdated SSE2 code
Erik de Castro Lopo [Tue, 21 Feb 2017 09:27:05 +0000 (20:27 +1100)]
SIMD: remove outdated SSE2 code

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>

2 years agoSIMD: Accelerate decoding of 16 bit FLAC
Erik de Castro Lopo [Sun, 19 Feb 2017 11:19:38 +0000 (22:19 +1100)]
SIMD: Accelerate decoding of 16 bit FLAC

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>

2 years agoSIMD: Improve decoding of some 24 bit files
Erik de Castro Lopo [Sun, 19 Feb 2017 08:47:58 +0000 (19:47 +1100)]
SIMD: Improve decoding of some 24 bit files

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>

2 years agoSIMD: Add const qualifier where appropriate
Erik de Castro Lopo [Sun, 19 Feb 2017 08:45:54 +0000 (19:45 +1100)]
SIMD: Add const qualifier where appropriate

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

2 years agocpu.h: Another CPP fixup
Erik de Castro Lopo [Thu, 16 Feb 2017 07:15:11 +0000 (18:15 +1100)]
cpu.h: Another CPP fixup

CPP is minefield. We should simplify CPP wherever possible and work
to minimise nesting.

2 years agocpu.h: Fix compiler detection
Erik de Castro Lopo [Wed, 15 Feb 2017 07:22:23 +0000 (18:22 +1100)]
cpu.h: Fix compiler detection

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.

2 years agoflac/encode.c: Fix an integer overflow
Erik de Castro Lopo [Tue, 14 Feb 2017 10:21:54 +0000 (21:21 +1100)]
flac/encode.c: Fix an integer overflow

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

2 years agostream encoder: fix documentation inconsistencies
Christian Stadelmann [Mon, 30 Jan 2017 16:43:31 +0000 (17:43 +0100)]
stream encoder: fix documentation inconsistencies

Fixes https://sourceforge.net/p/flac/bugs/452/

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agocpu.h: Add #defines so Clang compiles AVX2
Erik de Castro Lopo [Sun, 12 Feb 2017 11:38:11 +0000 (22:38 +1100)]
cpu.h: Add #defines so Clang compiles AVX2

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

2 years agoFix compile with cygwin
Rosen Penev [Thu, 9 Feb 2017 03:42:42 +0000 (19:42 -0800)]
Fix compile with cygwin

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>
2 years agoconfigure.ac: Clean up CFLAGS code
Erik de Castro Lopo [Mon, 6 Feb 2017 08:54:13 +0000 (19:54 +1100)]
configure.ac: Clean up CFLAGS code

Also moves _FORTIFY_SOURCE detection to an M4 macro.

Patchfrom: David Seifert <soap@gentoo.org>

2 years agolibFLAC/lpc_intrin_sse41.c: Change usage of _mm_alignr_epi8
Erik de Castro Lopo [Tue, 31 Jan 2017 09:37:48 +0000 (20:37 +1100)]
libFLAC/lpc_intrin_sse41.c: Change usage of _mm_alignr_epi8

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>

2 years agolibFLAC/lpc_intrin_sse*: Formatting cleanup
Erik de Castro Lopo [Tue, 31 Jan 2017 09:35:55 +0000 (20:35 +1100)]
libFLAC/lpc_intrin_sse*: Formatting cleanup

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

2 years agoFLAC__stream_encoder_finish: Sanity improvement
Erik de Castro Lopo [Mon, 30 Jan 2017 19:39:22 +0000 (06:39 +1100)]
FLAC__stream_encoder_finish: Sanity improvement

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).

2 years agoinclude/share/compat.h: Only define inline for C
Erik de Castro Lopo [Mon, 23 Jan 2017 19:20:03 +0000 (06:20 +1100)]
include/share/compat.h: Only define inline for C

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

2 years agoCreate .travis.yml
Stephen [Sun, 22 Jan 2017 01:15:44 +0000 (17:15 -0800)]
Create .travis.yml

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Closes: https://github.com/xiph/flac/pull/28

2 years agoDo not override CFLAGS, as CFLAGS is a user flag.
David Seifert [Sun, 15 Jan 2017 09:37:02 +0000 (10:37 +0100)]
Do not override CFLAGS, as CFLAGS is a user flag.

* 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>
2 years agoFix cppcheck warnings
Rosen Penev [Thu, 19 Jan 2017 02:45:28 +0000 (18:45 -0800)]
Fix cppcheck warnings

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agoshare/utf8/charset.c: Cleanup realloc() usage
Erik de Castro Lopo [Thu, 19 Jan 2017 09:28:18 +0000 (20:28 +1100)]
share/utf8/charset.c: Cleanup realloc() usage

This version should be logically identical to the previous version
but prevents a false-positive from the cppcheck static analysis
tool.

2 years agoAdd missing file include/share/msvc2005_int.h
Erik de Castro Lopo [Wed, 18 Jan 2017 19:56:14 +0000 (06:56 +1100)]
Add missing file include/share/msvc2005_int.h

2 years agostdint.h fixes for MSVS 2005/2008
Erik de Castro Lopo [Wed, 18 Jan 2017 19:30:45 +0000 (06:30 +1100)]
stdint.h fixes for MSVS 2005/2008

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>

2 years agometadata.h: Fix search/replace typo in comments
Erik de Castro Lopo [Tue, 17 Jan 2017 07:53:57 +0000 (18:53 +1100)]
metadata.h: Fix search/replace typo in comments

2 years agogetopt.c: Pointer comparison fix
Erik de Castro Lopo [Tue, 17 Jan 2017 07:28:28 +0000 (18:28 +1100)]
getopt.c: Pointer comparison fix

* 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>

2 years agoOnly compile and run tests when running 'make check'
David Seifert [Sun, 15 Jan 2017 09:37:03 +0000 (10:37 +0100)]
Only compile and run tests when running 'make check'

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agoFinal unsigned fixes
Erik de Castro Lopo [Mon, 16 Jan 2017 08:31:22 +0000 (19:31 +1100)]
Final unsigned fixes

Found using the Makefile.lite build system.

2 years agoYet more unsigned fixes
Erik de Castro Lopo [Mon, 16 Jan 2017 07:28:31 +0000 (18:28 +1100)]
Yet more unsigned fixes

2 years agobitmath.h: MSVS unsigned fix
Erik de Castro Lopo [Sun, 15 Jan 2017 05:25:40 +0000 (16:25 +1100)]
bitmath.h: MSVS unsigned fix

The orignal code had `unsigned long` inside `#ifdef MSVC`. It was then changed
to `uint64_t` which was incorrect because on Windows `sizze long == 4`.
Change it now to `uint32_t` which is always correct regardless of OS, compiler
or architecture.

2 years agolibFLAC/cpu.c: Replace memory.h include with string.h
sezero [Sat, 14 Jan 2017 22:56:56 +0000 (01:56 +0300)]
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>
2 years agoHonor user's $(htmldir) and do not override GNU defaults for $(docdir)
David Seifert [Fri, 13 Jan 2017 17:42:30 +0000 (18:42 +0100)]
Honor user's $(htmldir) and do not override GNU defaults for $(docdir)

* HTML files should be installed to $(htmldir), and $(docdir) should
  not be changed, as this is a user flag in the GNU conventions.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agoWhen using libtool, use LTLIBICONV instead.
David Seifert [Fri, 13 Jan 2017 17:42:31 +0000 (18:42 +0100)]
When using libtool, use LTLIBICONV instead.

* This is required, as otherwise -Wl,--as-needed could fail.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agoMake building/installing examples optional
David Seifert [Fri, 13 Jan 2017 17:42:29 +0000 (18:42 +0100)]
Make building/installing examples optional

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agobitmath.h: More unsigned fixes
Erik de Castro Lopo [Sun, 15 Jan 2017 01:20:52 +0000 (12:20 +1100)]
bitmath.h: More unsigned fixes

2 years agoYet more purging of `unsigned` type
Erik de Castro Lopo [Sat, 14 Jan 2017 19:47:51 +0000 (06:47 +1100)]
Yet more purging of `unsigned` type

2 years agoinclude/FLAC: More unsigned fixes
Erik de Castro Lopo [Sat, 14 Jan 2017 09:02:15 +0000 (20:02 +1100)]
include/FLAC: More unsigned fixes

These fixes are in the public API, but FLAC would have been extremely
unlikely to work in any system where `unsigned` was not 32 bits.
Therefore we do not treat this as an API change.

2 years agoflac/utils.c: Workaround for DJGPP missing wcswidth()
sezero [Fri, 13 Jan 2017 15:20:35 +0000 (18:20 +0300)]
flac/utils.c: Workaround for DJGPP missing wcswidth()

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agoSupport nasm coff obj format for djgpp
sezero [Fri, 13 Jan 2017 14:51:06 +0000 (17:51 +0300)]
Support nasm coff obj format for djgpp

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agoPurge usage of `unsigned` type
Erik de Castro Lopo [Sat, 14 Jan 2017 06:26:39 +0000 (17:26 +1100)]
Purge usage of `unsigned` type

As pointed out by Ozkan Sezer, on some platforms `int32_t` is actually
a typedef for `long` so `unsigned` cannot be used interchangably with
`FLAC__uint32`. Fix is to switch from `unsigned` to explicit sized ISO
C types defined in <stdint.h>.

2 years agoconfigure.ac: relax linux OS detection
Peter Korsgaard [Mon, 9 Jan 2017 21:19:01 +0000 (22:19 +0100)]
configure.ac: relax linux OS detection

Not all linux hosts match the *-pc-linux-gnu wildcard, causing build
failures for older glibc versions where we need to link with -lrt for
clock_gettime - E.G.:

 - arm-unknown-linux-musleabihf
 - powerpc-unknown-linux-gnuspe
 - bfin-linux-linux-uclibc
 ..

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2 years agolibFLAC/cpu.c: Fix build issue on OpenBSD/i386
Erik de Castro Lopo [Fri, 13 Jan 2017 10:30:55 +0000 (21:30 +1100)]
libFLAC/cpu.c: Fix build issue on OpenBSD/i386

Patch-from: Christian Weisgerber <naddy@mips.inka.de>

2 years agostream_encoder.c: Make compression_levels_ array const
Erik de Castro Lopo [Fri, 6 Jan 2017 09:01:18 +0000 (20:01 +1100)]
stream_encoder.c: Make compression_levels_ array const

As pointed out by github user @randomascii, the `compression_levels_`
struct could and should be const.

Closes: https://github.com/xiph/flac/issues/26

2 years agoFix build with MSVC if UNICODE is enabled
Erik de Castro Lopo [Tue, 3 Jan 2017 19:30:42 +0000 (06:30 +1100)]
Fix build with MSVC if UNICODE is enabled

Patch-from: "lvqcl.mail" <lvqcl.mail@gmail.com>
Closes: https://sourceforge.net/p/flac/bugs/447/

2 years agolibFLAC/cpu.c: Fix CPU detecton
Erik de Castro Lopo [Mon, 2 Jan 2017 17:46:20 +0000 (04:46 +1100)]
libFLAC/cpu.c: Fix CPU detecton

Patch-from: Janne Hyv√§rinen <cse@sci.fi>

2 years agoVersion 1.3.2 1.3.2
Erik de Castro Lopo [Sun, 1 Jan 2017 00:54:07 +0000 (11:54 +1100)]
Version 1.3.2

2 years agotest/test_metaflac.sh: Comment only
Erik de Castro Lopo [Sun, 1 Jan 2017 00:52:04 +0000 (11:52 +1100)]
test/test_metaflac.sh: Comment only

2 years agolibFLAC: Remove commented out assert
Erik de Castro Lopo [Sat, 24 Dec 2016 11:05:07 +0000 (22:05 +1100)]
libFLAC: Remove commented out assert

Pointed out by c.helmrich@ecodis.de. It was added during debugging
in commit c06a44969, but was never meant to stay.

2 years agoMakefile.lite: Fix running of tests
Erik de Castro Lopo [Wed, 21 Dec 2016 05:42:15 +0000 (16:42 +1100)]
Makefile.lite: Fix running of tests

* Generate `test/common.sh` from `test/common.sh.in`.
* Move `is_win` setting to `test_common.sh`.

2 years agolibFLAC/cpu.c: Add CPP guard
Erik de Castro Lopo [Wed, 21 Dec 2016 05:16:13 +0000 (16:16 +1100)]
libFLAC/cpu.c: Add CPP guard

2 years agoMore Makefile.lite fixes
Erik de Castro Lopo [Wed, 21 Dec 2016 05:14:46 +0000 (16:14 +1100)]
More Makefile.lite fixes

Patch-from: Robert Kausch <robert.kausch@freac.org>

2 years agoAdd missing files to Makefile.am
Erik de Castro Lopo [Sun, 11 Dec 2016 09:20:47 +0000 (20:20 +1100)]
Add missing files to Makefile.am

2 years agoMakefile.lite fixes
Erik de Castro Lopo [Sun, 11 Dec 2016 09:17:49 +0000 (20:17 +1100)]
Makefile.lite fixes

Patch-from: Robert Kausch <robert.kausch@freac.org>

2 years agoFix PACKAGE_VERSION in MSVC files
Erik de Castro Lopo [Sun, 11 Dec 2016 09:11:58 +0000 (20:11 +1100)]
Fix PACKAGE_VERSION in MSVC files

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

2 years agodoc/html/changelog.html: Add credits
Erik de Castro Lopo [Tue, 6 Dec 2016 19:05:52 +0000 (06:05 +1100)]
doc/html/changelog.html: Add credits

2 years agodoc/html/changelog.html: Add OS/SSE assumptions
Erik de Castro Lopo [Tue, 6 Dec 2016 09:29:15 +0000 (20:29 +1100)]
doc/html/changelog.html: Add OS/SSE assumptions

2 years agodoc/html/changelog.html: More updates for 1.3.2 release
Erik de Castro Lopo [Tue, 6 Dec 2016 09:04:18 +0000 (20:04 +1100)]
doc/html/changelog.html: More updates for 1.3.2 release

2 years agolibFLAC/metadata_object.c: Fix typo in number
Erik de Castro Lopo [Tue, 6 Dec 2016 08:44:37 +0000 (19:44 +1100)]
libFLAC/metadata_object.c: Fix typo in number

As pointed out by Evan Ramos there was typo, `32786` instead of
`32768`.

2 years agolibFLAC/cpu.c: Improve logic
Erik de Castro Lopo [Tue, 6 Dec 2016 08:37:52 +0000 (19:37 +1100)]
libFLAC/cpu.c: Improve logic

Only call `FLAC__cpu_have_cpuid_asm_ia32` if `FLAC__HAS_NASM` is
defined.

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

2 years agoUpdate version in MSVS project files
Erik de Castro Lopo [Mon, 5 Dec 2016 08:35:53 +0000 (19:35 +1100)]
Update version in MSVS project files

2 years agoAnother bulk update of copyright dates
Erik de Castro Lopo [Mon, 5 Dec 2016 07:57:47 +0000 (18:57 +1100)]
Another bulk update of copyright dates

2 years agodoc/html/changelog.html: Update for 1.3.2 release
Erik de Castro Lopo [Sun, 4 Dec 2016 19:49:59 +0000 (06:49 +1100)]
doc/html/changelog.html: Update for 1.3.2 release

2 years agoBulk update copyright dates
Erik de Castro Lopo [Sun, 4 Dec 2016 19:35:39 +0000 (06:35 +1100)]
Bulk update copyright dates

2 years agoconfigure.ac: Fix description of --disable-sse
Erik de Castro Lopo [Sun, 4 Dec 2016 18:37:44 +0000 (05:37 +1100)]
configure.ac: Fix description of --disable-sse

2 years agoconfigure.ac: Remove unused config flags
Erik de Castro Lopo [Sun, 4 Dec 2016 18:33:51 +0000 (05:33 +1100)]
configure.ac: Remove unused config flags

FLAC__NO_SSE_OS and FLAC__SSE_OS.

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