Erik de Castro Lopo
fc360735ce
Fix a regression that severely impacted compression levels.
...
Regression was introducted in commit 8bbbf56403
(Feb 1 19:58:09 2012) when fixing compiler warnings. In src/libFLAC/lpc.c the
line:
ref[i] = (r/=err);
was erroniously removed because the left hand side, ref[i] was never used.
Obviously, the correct thing to do was to replace that line with:
r /= err;
This code has not been officially released. The only people who would have
been affected are people who compiled FLAC from git between February and
now.
The only adverse affect of this error was that compression ratio would have
been severely compromised. No audio is lost, and if anyone has a file that
compressed with a bad version of FLAC can decompress it to WAV and then
re-compress with a fixed version.
2012-10-12 22:02:49 +11:00
Erik de Castro Lopo
a2923e64c0
Regenerate manpages.
2012-09-19 18:06:49 +10:00
Erik de Castro Lopo
6f3f7f06c8
Updates to metaflac manpage from Jaren Stangret <sirjaren@gmail.com>.
2012-09-19 18:06:10 +10:00
Erik de Castro Lopo
023f06f6cb
man/Makefile : Fail more gracefully.
2012-09-19 18:03:19 +10:00
Erik de Castro Lopo
b21f190861
Add a convenience function to create a Metadata::Padding object with a
...
certain size in one statement.
Patch from Bastiaan Timmer <basjetimmer@yahoo.com >
2012-09-11 15:52:24 +10:00
Miroslav Lichvar
8d9e5c6e8e
Optimize FLAC__bitreader_read_rice_signed_block.
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2012-08-28 21:17:18 +10:00
Miroslav Lichvar
7b37472a2f
Add new clz function which works with input 0.
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2012-08-28 21:17:15 +10:00
Miroslav Lichvar
d69e807e10
Make FLAC__clz_soft_uint32 static.
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2012-08-28 21:17:12 +10:00
Samuli Suominen
12022d90dd
Fix assembler code to make it PIC so the dynamic linker does
...
not have to do text relocations on-the-fly. Patch from Gentoo
via Jaren Stangret <sirjaren@gmail.com >
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2012-07-26 17:21:41 +10:00
Erik de Castro Lopo
a9f3bc8eed
Change order of flac_LDADD libs so it works with mingw.
2012-07-04 20:05:11 +10:00
Erik de Castro Lopo
4ef5bfbc56
Add 'ar-lib' to .gitignore.
2012-07-04 19:54:48 +10:00
Erik de Castro Lopo
3e2cd27d05
configure.ac : Make sure FLAC__HAS_OGG gets defined to either 0 or 1.
2012-07-04 19:53:31 +10:00
Erik de Castro Lopo
a7e3705d05
Move code inside #ifdef _MSC_VER to compat.h.
2012-06-22 16:03:04 +10:00
Erik de Castro Lopo
5b62b770bc
Move all definitions of FLAC__U64L to one place.
2012-06-22 14:52:53 +10:00
Bastiaan Timmer
1294b64996
Adds last functions from C metadata api to C++ metadata api
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2012-06-22 14:35:07 +10:00
Erik de Castro Lopo
8749dc278d
Fix building when configured with --disable-shared.
...
The problem was that the function safe_malloc_mul_2op_() was originally
defined as static inline in inclide/share/alloc.h but had to be moved
because GCC was refusing to inline it. Once moved however, static linking
would fail when building the flac executable because the function ended
up beiong linked twice.
2012-06-22 14:23:56 +10:00
Erik de Castro Lopo
feab11e9bd
Fix FLAC__stream_decoder_delete() and FLAC__stream_encoder_delete()
...
so that they will simply return if passed a NULL pointer (ie just
like the C free() stdlib function).
2012-06-22 13:39:40 +10:00
Cristian Rodríguez
63c874f0fd
Fix build with automake 1.12
...
recent autotools require calling AM_PROG_AR before LT_INIT
this macro needs to be conditionally defined as it is not
present in old versions.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2012-06-08 20:13:29 +10:00
Bastiaan Timmer
04ca6fd9e1
Quick patch to fix FLAC_metadata_object api docs.
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2012-06-08 19:58:41 +10:00
Cristian Rodríguez
387b72731d
bitmath: Finish up optimizations
...
This patch adds support for other compilers and systems
including MSVC, Intel C compiler etc..
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2012-06-08 19:58:29 +10:00
Erik de Castro Lopo
605f920816
Fix more compiler warnings.
2012-05-08 20:08:06 +10:00
Erik de Castro Lopo
7c07a0ddfe
configure.ac : For gcc use -Wall -Wextra when using --enable-gcc-werror.
2012-05-08 20:06:22 +10:00
Erik de Castro Lopo
56c3191827
metadata.cpp : Fix compiler warning on 64 bit.
...
Patch from Bastiaan Timmer <basjetimmer@yahoo.com >.
2012-05-08 19:51:50 +10:00
Erik de Castro Lopo
155719b470
src/libFLAC/lpc.c : Include <inttypes.h> so compiling debug version works.
2012-05-08 19:23:08 +10:00
Erik de Castro Lopo
601e96102c
Add missing functions to VorbisComment class.
...
Patch from Bastiaan Timmer <basjetimmer@yahoo.com > sent to the
<flac-dev@xiph.org > mailing list.
2012-05-08 19:12:58 +10:00
Miroslav Lichvar
5289b309cf
Optimize COUNT_ZERO_MSBS macro
...
Reorder the conditions according to the expected distribution of input
signal. This seems to make it almost as fast as the clz builtin using
the bsr instruction.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2012-05-07 21:45:33 +10:00
Erik de Castro Lopo
d9fde55674
Fix all links to libtool version info rules.
2012-05-07 19:45:23 +10:00
Erik de Castro Lopo
f491b73385
Bump version-info for libFLAC++ from 8:0:2 to 8:0:3.
2012-05-07 19:38:05 +10:00
Erik de Castro Lopo
cd9053cd31
Add functionality present in the C library to the to C++ SeekTable class.
...
Patch from Bastiaan Timmer <basjetimmer@yahoo.com > sent to the
<flac-dev@xiph.org > mailing list.
2012-05-07 19:22:37 +10:00
Erik de Castro Lopo
c5c4ce918f
Tweak MALLOC_PERTURB_ expression in tests.
2012-04-19 06:31:11 +10:00
Cristian Rodríguez
95f0f75477
export MALLOC_PERTURB_ and MALLOC_CHECK_ in test suite
...
That enables an special implementation that checks
for common memory errors and will save us from a lot pain.
2012-04-19 04:54:01 +10:00
Cristian Rodríguez
c2417da842
replace local_strtoull with _strtoui64 in windows
...
Previous patch replaced the other local_strtoll with _strtoi64
2012-04-18 22:00:59 +10:00
Cristian Rodríguez
7e62afe9fa
Remove local_strtoull, windows has equivalent function _strtoui64
2012-04-18 21:59:11 +10:00
Cristian Rodríguez
9b7cb22f84
Update and improve autotools build
...
- INCLUDES is deprecated, and CPPFLAGS is an user-defined
variable, use the proper AM_CPPFLAGS instead
- Remove FLAC__INLINE definition, providing proper
replacement for MSVC compilers.
- Detect if we have C99 's lround and provide a replacement
for windows...
2012-04-08 09:03:03 +10:00
Erik de Castro Lopo
8340ab3bc8
Use sizeof instead of magic number 4.
2012-04-07 09:00:09 +10:00
Erik de Castro Lopo
b3e9eb66ef
Update .gitignore.
2012-04-07 08:52:39 +10:00
Cristian Rodríguez
f13ad37519
Fix make distcheck
2012-04-07 08:36:27 +10:00
Erik de Castro Lopo
425d39b5f8
src/libFLAC/include/private/macros.h : Add copyright header.
2012-04-06 09:58:23 +10:00
Cristian Rodríguez
f029625591
V2: Use a single definition of MIN and MAX in sources
2012-04-06 09:52:06 +10:00
Cristian Rodríguez
d30fe60fc6
remove unnecesary typedef in bitwriter.c
2012-04-06 09:06:17 +10:00
Erik de Castro Lopo
5de949f417
Fix gcc-4.7 compiler warnings.
2012-04-05 21:24:06 +10:00
Erik de Castro Lopo
dff08f1be0
Fix buffer overflow by replacing strcpy with memcpy.
...
Thanks to Cristian Rodríguez <crrodriguez@opensuse.org > for the
report.
2012-04-05 21:02:40 +10:00
Erik de Castro Lopo
6c2040dc90
Remove casting of return value from *alloc() functions.
2012-04-04 21:29:25 +10:00
Erik de Castro Lopo
afedee1251
configure.ac : Add AM_PROG_CC_C_O.
2012-04-04 20:08:52 +10:00
Erik de Castro Lopo
66bd44bacc
Remove unnecessary typedef.
2012-03-30 22:25:39 +11:00
Erik de Castro Lopo
5c44cd7d0c
Add GCC specific optimisation for log base 2 operations.
...
Based on a patch from Cristian Rodríguez.
2012-03-30 21:55:08 +11:00
Erik de Castro Lopo
238b2676c2
Remove winamp2 plugin
...
Patch from Cristian Rodríguez
Nullsoft has provided a native FLAC support since Winamp 5.31 (since
the year 2006).
2012-03-30 21:35:41 +11:00
Erik de Castro Lopo
f20770e5d4
Add patch from Earl Chew <earl_chew@yahoo.com> that adds testing for
...
the replay gain calculations.
2012-03-19 07:44:11 +11:00
Erik de Castro Lopo
2f8b6a0349
Rename ENDSWAP_INT to ENDSWAP_32.
2012-03-05 21:12:20 +11:00
Dave Yeo
b81e794302
Include stdlib.h for _response() and _wildcard() declarations on OS/2
2012-02-27 17:36:34 +11:00