Commit Graph

2488 Commits

Author SHA1 Message Date
Erik de Castro Lopo
cf0277bde9 src/flac/utils.c : Add fflush after printing to stderr.
Patch from: MuldeR <mulder2@gmx.de>
2013-06-17 17:57:09 +10:00
Miroslav Lichvar
4eab6313cd Disable FLAC__bitreader_read_rice_signed_block_asm_ia32_bswap.
Don't use the assembly function since it seems to be slower than
the current version of FLAC__bitreader_read_rice_signed_block.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-06-06 19:57:21 +10:00
Miroslav Lichvar
606fdfcaec metaflac : Fix local_strcat() to terminate string correctly.
The NUL char is written at incorrect place when the destination string
is longer than 0, which causes memory corruption. It was broken by
commit 2d6354ff2a.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-06-05 18:50:42 +10:00
Cristian Rodríguez
d42c04260b Add missing config.h includes
All C and C++ files must include config.h

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-06-05 18:50:17 +10:00
Erik de Castro Lopo
21a70169f8 XMMS plugin : Fix symbol visibility.
FLAC now defaults to building with -fvisibility=hidden on GCC4-ELF
platforms.  This breaks the XMMS plugin.  At least get_iplugin_info()
needs to be externally visible.

Patch from Christian Weisgerber <naddy@mips.inka.de>
2013-06-05 18:48:25 +10:00
Ulrich Klauer
cd4ddabe0f Language fix: "difference licenses"
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-05-27 18:08:57 +10:00
Dagobert Michelsen
5999d81f0e Use location of TIOCGWINSZ from autoconf manual
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-05-27 18:06:56 +10:00
Dagobert Michelsen
349c6adcf7 Sun Studio can not include static function from extern inline
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-05-27 18:06:51 +10:00
Ulrich Klauer
5a01bf17dd src/flac/main.c : Fix copyright notice
There is no copyright for 2010, so "2000-2013" should not be used.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-05-27 06:42:16 +10:00
Erik de Castro Lopo
b1982fbc5f Set version to 1.3.0 and update coyprights throughout. 2013-05-26 19:17:53 +10:00
Ulrich Klauer
d672efaa05 Fix gcc version check for private macros
Use Benjamin Stiglitz' MIN macros from gcc 4.3 (according to the
changelog, __COUNTER__ was introduced in this version). Previously,
the macros weren't used on any existing gcc version; the first one
would have been 5.5.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-05-26 08:26:45 +10:00
Robert Kausch
411ba53c7b bitwriter.c : Add missing "extern" declaration
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-05-26 07:42:22 +10:00
Robert Kausch
bb79a59a9f Fix mistyped variable name
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-05-26 07:42:19 +10:00
Ulrich Klauer
c9f05ed210 Correctly initialize FLAC_API_SUPPORTS_OGG_FLAC
Commits a7e3705d05 and
a4c321e492, while trying to simplify how
the FLAC_API_SUPPORTS_OGG_FLAC global variable was initialized,
inadvertently caused it to be always set to false, whether Ogg support
was compiled in or not.

This commit reverts the relevant part to how it looked in the 1.2.1
release, which is verbose but correct.

The problem was found by Robert Kausch <robert.kausch@freac.org>.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-05-26 07:42:13 +10:00
Erik de Castro Lopo
d7a56a28dd Fix compiling for Android.
Patch from Janne Hyvärinen <cse@sci.fi>.
2013-05-25 17:12:27 +10:00
Ulrich Klauer
aa285f3ac1 Use C locale when reading ReplayGain tag
When a locale is in effect that does not use the point as the decimal
mark (e.g., sv_SE or de_DE, which use a comma) and a ReplayGain tag is
read for --apply-replaygain-which-is-not-lossless, the gain value was
misinterpreted (e.g., "-2.29" truncated to "-2"). This is fixed by
resetting the locale to "C" temporarily, based on Josh Coalson's fix
of the dual case (writing ReplayGain tag) in commit cda02d3.

Patch by hhaamu@gmail.com, taken from the Debian patch tracker for
flac 1.2.1-6 (13_replaygain_c_locale.patch).

http://sourceforge.net/p/flac/bugs/380/

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-30 09:48:44 +10:00
Erik de Castro Lopo
c1ebd2caa4 Two minor compiled fixes for OS/2.
Patch from Dave Yeo <dave.r.yeo@gmail.com>.
2013-04-29 21:33:02 +10:00
Erik de Castro Lopo
1b1d05bb25 Version 1.3.0pre4. 2013-04-28 19:00:30 +10:00
Erik de Castro Lopo
113ec9d806 src/flac/encode.c : Use flac_snprintf instead of sprintf. 2013-04-28 19:00:30 +10:00
Janne Hyvärinen
cc9f392166 Metaflac UTF-8 fixes (Windows)
Metaflac can now print all console supported characters from tags on the
screen. It also fixes metaflac to be able to import its own exports back
without non-ascii characters getting mutilated. And --no-utf8-convert
now works properly with import and export commands.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-25 08:58:08 +10:00
Janne Hyvärinen
bf63268425 Fix status print staying on the wrong line with certain filename length.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-21 21:47:33 +10:00
Erik de Castro Lopo
fc21768d44 Fix compile when compiling with FLAC__INTEGER_ONLY_LIBRARY.
Problem reported by Martijn van Beurden <mvanb1@gmail.com>.
2013-04-21 19:51:56 +10:00
Erik de Castro Lopo
ef40d9d4ca Fix -Wshadow warnings when compiling with mingw-gcc. 2013-04-21 19:31:54 +10:00
Erik de Castro Lopo
f9d33d96e5 Metaflac hex dump UTF-8 and locale fix.
Change metaflac hexdump function so utf-8 decoding is only used for
filename printing and changed hex output printing to not rely only
on isprint. That function seems to return true for tabulator
control character under Windows when application isn't using C-locale.

Patch (with one minor tweak) from Janne Hyvärinen <cse@sci.fi>.
2013-04-21 18:05:25 +10:00
Janne Hyvärinen
e8ffe523f8 Windows utf8 utime fix.
UTF-8 version of utime was completely broken and file timestamps were
not preserved.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-21 17:56:16 +10:00
Erik de Castro Lopo
52fab8ba7e Win utf8 treatment for CreateFile.
Patch from Janne Hyvärinen <cse@sci.fi>.
2013-04-21 17:53:07 +10:00
Cristian Rodríguez
92db3c951e Ensure AM_LDFLAGS is used consistently
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-21 17:26:33 +10:00
Erik de Castro Lopo
0b736a5605 Fix compiler warnings related to win utf8 stuff. 2013-04-21 17:24:59 +10:00
Erik de Castro Lopo
d0c219f197 A set of windows utf8 patches fromJanne Hyvärinen <cse@sci.fi>. 2013-04-21 16:50:24 +10:00
Erik de Castro Lopo
2de567fb11 src/libFLAC/include/private/macros.h : Add default MIN/MAX macros. 2013-04-07 20:21:24 +10:00
Erik de Castro Lopo
03a9e6064d src/libFLAC/include/private/macros.h : Check GNUC version for MIN macro. 2013-04-07 20:15:09 +10:00
Erik de Castro Lopo
d6219e8bb1 src/share/Makefile.am : Rejig building of win_utf8_io/libwin_utf8_io.la.
This should avoid a build error on Mac OSX where it the Mac build
tools refused to build an empty library. Problem reported by
Michael Guntsche <michael.guntsche@it-loops.com>.
2013-04-07 18:08:18 +10:00
Erik de Castro Lopo
b9574fe589 Fix a bunch of compiler warnings (mainly MinGW). 2013-04-07 13:44:45 +10:00
Erik de Castro Lopo
6a9a18ff7a For windows, make UTF-8 mode into a runtime choice.
The smaller patch makes the utf-8 library use ANSI codepage by
default. When frontends call the "get_utf8_argv" function it
changes Unicode conversion codepage from ANSI to UTF-8.

Patch from Janne Hyvärinen <cse@sci.fi>.
2013-04-07 13:11:19 +10:00
Ulrich Klauer
b500183e95 Only link against libogg (and libm) if needed
Most of the programs don't use libogg or libm directly and should not
link to them (overlinking).

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-07 11:03:56 +10:00
Ulrich Klauer
5da86630be Fix pkg-config files to avoid overlinking
Libraries that are used internally by libFLAC(++) but are not part of
their API should be listed in pkg-config "private" clauses. Otherwise
executables that are linked dynamically against libFLAC(++) will have
unneeded direct dependencies (overlinking).

Based on a patch by Brad Smith from
  https://sourceforge.net/p/flac/bugs/397/
that I updated to only include ogg if libFLAC is actually built with
ogg support.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-07 11:03:52 +10:00
Erik de Castro Lopo
ae7eda1815 Rename all parameters and locals from 'index' to 'indx'. 2013-04-05 20:21:22 +11:00
Erik de Castro Lopo
da57d2a48d flac*.pc : Add -logg if configured with Ogg support. 2013-04-02 20:45:54 +11:00
Erik de Castro Lopo
051a38362a flactimer patches from Janne Hyvärinen <cse@sci.fi>. 2013-04-02 20:30:55 +11:00
Erik de Castro Lopo
2b875d77aa flac_mac safe string patch from Janne Hyvärinen <cse@sci.fi>. 2013-04-02 20:24:37 +11:00
Erik de Castro Lopo
01e1bb9a58 metaflac typo patch from Janne Hyvärinen <cse@sci.fi>. 2013-04-02 20:23:59 +11:00
Erik de Castro Lopo
ae5cc0c046 flac_mac patches from Janne Hyvärinen <cse@sci.fi>. 2013-04-02 06:37:13 +11:00
Erik de Castro Lopo
1e89230c3e Another windows utf8 I/O patch from Janne Hyvärinen <cse@sci.fi>. 2013-04-02 06:35:37 +11:00
Erik de Castro Lopo
d6218bf3ec MSVC version patch from Janne Hyvärinen <cse@sci.fi>. 2013-04-02 06:34:38 +11:00
Erik de Castro Lopo
f44c353e59 Two small patches for utf8 I/O.
Thanks to LRN <lrn1986@gmail.com>.
2013-04-02 06:27:12 +11:00
Erik de Castro Lopo
932c7ba26c Purge more strcpy/strcat usage. 2013-04-01 22:00:59 +11:00
Erik de Castro Lopo
0cd2e9ed69 Purge FLAC__STRINGS_IN_UTF8 from VC project files. 2013-04-01 20:01:37 +11:00
Erik de Castro Lopo
2199d08692 Enable utf8 I/O stuff when compiling with MinGW. 2013-04-01 19:57:13 +11:00
Erik de Castro Lopo
b3c3e2ac4f Use recursive automake in src/share/ part of tree.
This will make it easier to incorporate the win_utf8_io stuff.
2013-04-01 19:46:12 +11:00
Erik de Castro Lopo
e14a08766a Add CLEANFILES to relevant Makefile.am to force removal of Windows EXEs.
This ensures they are removed even we've cross-compiled from Linux
to Windows and then configured for Linux. We don't want the Windows
EXEs to be run after configuring for Linux.
2013-03-29 21:25:59 +11:00