Commit Graph

888 Commits

Author SHA1 Message Date
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
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
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
155719b470 src/libFLAC/lpc.c : Include <inttypes.h> so compiling debug version works. 2012-05-08 19:23:08 +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
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
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
6c2040dc90 Remove casting of return value from *alloc() functions. 2012-04-04 21:29:25 +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
2f8b6a0349 Rename ENDSWAP_INT to ENDSWAP_32. 2012-03-05 21:12:20 +11:00
Dave Yeo
c89269e20d a.out format does not support many .section directives 2012-02-27 17:36:27 +11:00
Erik de Castro Lopo
b48909780b Fix a couple 'inlining failed' warning messages. 2012-02-26 20:00:36 +11:00
Erik de Castro Lopo
587e118bfc Fix a bunch of -Wtype-limits warnings. 2012-02-17 17:52:12 +11:00
Erik de Castro Lopo
b6e64af3b3 Disable Altivec on host triplet powerpc-unknown-linux-gnuspe.
SPE is incompatible with AltiVec because it shares the same opcode range.

Patch from Sebastian Andrzej Siewior <bigeasy@linutronix.de> via Debian.
2012-02-13 19:46:32 +11:00
Erik de Castro Lopo
c08b67923c libFLAC.m4 : Prevent empty -L flag.
Fix libFLAC.m4 may set empty -L flag when configure is called without
arguments, provided of course that the target package's configure script
is properly re-generated against the fixed libFLAC.m4

Patch from Fabian Greffrath <fabian+debian@greffrath.com> via Debian.
2012-02-13 19:39:55 +11:00
Erik de Castro Lopo
34de69aedd Disable executable stack in libFLAC.so.
This allows programs using it to run correctly on SE Linux systems, and
with exec-shield.

Patch from Russell Coker <russell@coker.com.au> via Debian.
2012-02-12 20:49:17 +11:00
Erik de Castro Lopo
dac99fa20b Patch from Dave Yeo to remove more CPP hackery.
Dave's comments:
This commit will break OS/2's EMX 0.9d library (GCC 2.8.1) which has been
been replaced by klibc. Considering the age of EMX and lack of testing
and that klibc contains so many improvements I think this is exceptable.
2012-02-08 21:07:08 +11:00
Erik de Castro Lopo
698ee5c7ed Purge MINGW_WINSOCK_LIBS config variable.
This was only needed for ntohl() function which has already been removed.
2012-02-05 16:25:22 +11:00
Erik de Castro Lopo
a5d1d4f0c5 Improve endswapping (especially purge ntohl). 2012-02-05 11:24:14 +11:00
Erik de Castro Lopo
4dfb536b1d Patch from JonY to remove more CPP hackery. 2012-02-04 20:47:10 +11:00
Erik de Castro Lopo
59afe36f71 Add file include/share/compat.h and start moving CPP hackery into it. 2012-02-04 16:13:37 +11:00
Erik de Castro Lopo
6c7568b712 Patch from JonY to suppress redefinition warnings with mingw-w64 lfs64 warnings. 2012-02-04 15:31:28 +11:00
Erik de Castro Lopo
3b41451197 Fix memory leak when reinitializing stream encoder.
http://sourceforge.net/tracker/?func=detail&aid=3390048&group_id=13478&atid=313478
2012-02-01 22:01:05 +11:00
Erik de Castro Lopo
9c2290ade5 Fix more printf formatting issues and remove un-necessary casts. 2012-02-01 21:46:35 +11:00
Erik de Castro Lopo
8bbbf56403 Fix compiler warnings. 2012-02-01 19:58:09 +11:00
Erik de Castro Lopo
6b3b137099 Fix a couple of -Winline warnings. 2012-02-01 19:49:54 +11:00
David Schleef
19e3918d4e Fix md5 structure clearing in previous commit 2011-08-25 23:28:11 -07:00
Felipe Contreras
6c8d740c1a Coverity fixes
Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
2011-08-25 23:28:06 -07:00
Josh Coalson
dea0f5a044 add 2009 copyright 2009-01-07 07:31:28 +00:00
Josh Coalson
c9ed238c3d Allow MM:SS:FF and MM:SS.SS time formats in non-CD-DA cuesheets (SF#1947353, SF#2182432: https://sourceforge.net/tracker2/?func=detail&aid=1947353&group_id=13478&atid=363478 https://sourceforge.net/tracker2/index.php?func=detail&aid=2182432&group_id=13478&atid=113478) 2009-01-07 07:03:17 +00:00
Josh Coalson
bd161c61fa Improve decoder's ability to distinguish between a FLAC sync code and an MPEG one (SF #2491433 https://sourceforge.net/tracker2/?func=detail&aid=2491433&group_id=13478&atid=113478 2009-01-07 06:54:05 +00:00
Josh Coalson
ee51fc0bae Fix bug in bitreader handling of read callback returning a short count (SF#2490454: https://sourceforge.net/tracker2/?func=detail&aid=2490454&group_id=13478&atid=113478) 2009-01-06 17:14:31 +00:00
Josh Coalson
0915a551eb Fixes for Sun Studio/Forte; us AC_C_INLINE to detect inline keyword for compiler; eliminate floating point calcs in RG analysis array size calculations (SF#1701960: https://sourceforge.net/tracker2/?func=detail&aid=1701960&group_id=13478&atid=313478) 2009-01-03 02:13:17 +00:00
Josh Coalson
8e28e43b25 remove some inlining directives 2009-01-03 02:10:18 +00:00
Josh Coalson
494d9ab011 mingw fixes, enable build dll w/ mingw (SF#2000973: https://sourceforge.net/tracker2/?func=detail&aid=2000973&group_id=13478&atid=313478) 2009-01-03 01:59:10 +00:00
Josh Coalson
a832ef32fb fixes for windows builds (SF#1676822: https://sourceforge.net/tracker2/?func=detail&aid=1676822&group_id=13478&atid=113478) 2009-01-02 01:12:59 +00:00
Josh Coalson
b76d4f817c remove /FLAC suffix on include path 2008-11-29 20:55:52 +00:00
Josh Coalson
e95399c19f fix bug in FLAC__metadata_object_vorbiscomment_replace_comment() 2008-09-15 05:37:27 +00:00
Josh Coalson
c10f978fa6 update Makefile.lite system to work on x86_64 linux 2008-09-14 19:59:52 +00:00
Josh Coalson
08bfd426d2 fix labels (missing colons) 2008-09-09 07:06:09 +00:00
Josh Coalson
588e138867 win64 fixes 2008-06-03 06:52:20 +00:00
Josh Coalson
2737f6a86c win64 fixes 2008-06-03 06:35:09 +00:00