summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Change C++ style comments to C style in headersMartijn van Beurden2022-09-201-6/+6
|
* Fix a lot of Doxygen errors and add some documentationMartijn van Beurden2022-09-203-19/+37
|
* Update API and tool docsMartijn van Beurden2022-09-202-14/+28
|
* Add struct tag to FLAC__StreamMetadata (#416)Martijn van Beurden2022-08-291-1/+1
|
* Add OOM checking to fuzzingMartijn van Beurden2022-08-201-6/+66
|
* Leave metadata items untouched if resize function failsMartijn van Beurden2022-08-202-5/+21
|
* Add and use _nofree variants of safe_realloc functionsMartijn van Beurden2022-08-201-4/+37
| | | | | | | | | | | | | | | | | Parts of the code use realloc like x = safe_realloc(x, somesize); when this is the case, the safe_realloc variant used must free the old memory block in case it fails, otherwise it will leak. However, there are also instances in the code where handling is different: if (0 == (x = safe_realloc(y, somesize))) return false in this case, y should not be freed, as y is not set to NULL we could encounter double frees. Here the safe_realloc_nofree functions are used.
* fix potential memleaklutianxiong2022-08-201-2/+6
|
* Fix and warning for MSVC with Windows XP toolset (#399)Martijn van Beurden2022-08-061-0/+23
| | | | A warning and a small workaround is added for building libFLAC on MSVC with a specific Windows XP targeting toolset.
* Finish porting guideMartijn van Beurden2022-07-274-18/+59
|
* Add porting guide stubMartijn van Beurden2022-07-271-0/+50
|
* Bulk update copyright dates to 2022Martijn van Beurden2022-07-2633-33/+33
|
* Include stddef.h in compat.hMartijn van Beurden2022-07-191-1/+3
| | | | | | | See https://github.com/xiph/flac/issues/76 for details Also, move include of stddef.h and stdarg.h up to top of file to make clear that they are included unconditionally
* Small fixes needed for 32-bit capability (#379)Martijn van Beurden2022-07-011-5/+3
| | | | | * Change replaygain analysis so it is able to handle 32-bit PCM * Increase FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE to 32 * Fix switch-case fallthrough
* Add 32-bit decoding capabilityMartijn van Beurden2022-06-121-4/+14
| | | | | | Decoding for 32-bit files is added, including the ability to decode a 33-bit side subframe. However, residuals are assumed to be limited to a 32-bit signed int, the encoder must make sure of this
* Small make distcheck fixesMartijn van Beurden2022-05-271-2/+1
|
* Remove all Visual Studio specific build filesMartijn van Beurden2022-05-272-54/+0
|
* Simplify and merge win_utf8 files and remove from DLL interfaceMartijn van Beurden2022-05-177-87/+41
| | | | | | | | | libFLAC DLLs were exposing windows_unicode_filename.h functions because flac and metaflac needed to set flac_internal_set_utf8_ filenames. Files windows_unicode_filename.{c/h} and win_utf8_io.[c/h] are merged, and all non-utf8 parts are removed. With this commit, the libFLAC DLL interface is the same as the libFLAC interface of shared libraries on other platforms
* Make it possible for fuzzer to disable instruction set optimizationsMartijn van Beurden2022-05-111-0/+1
| | | | This should greatly increase code coverage of the encoder fuzzer
* Rename FLAC__get_decoder_client_data to ...Martijn van Beurden2022-05-091-10/+10
| | | | | | ... FLAC__stream_decoder_get_client_data. Also the function definition was moved to its 'siblings'. This way, the function fits better in the API with respect to naming.
* Add API functions to limit minimum bitrateMartijn van Beurden2022-05-022-0/+30
| | | | | | | | | | | | | Quite a lot of decoders have trouble streaming or seeking in a file with frames that only consist of constant subframes because of the large difference between the largest and smallest subframe. To remedy this, this commit makes it possible to disable the use of constant subframes for the last subframe in case all others are constant with a new API function. This means the minimum bitrate for a FLAC file encoded with this function used is raised to 1bit/sample (i.e. 48kbit/s for 48kHz material). This commit also adds tests to the test suite
* change if checks to ifdefRosen Penev2022-04-293-4/+4
| | | | | | More similar to the rest of the code. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Add FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATAMartijn van Beurden2022-04-201-2/+9
|
* Remove api doc note untrue since commit c9c0d13Martijn van Beurden2022-04-191-4/+0
| | | This has been untrue for almost 20 years now
* Fix building both static and shared libs on MinGW with autotoolsMartijn van Beurden2022-04-152-6/+20
| | | | | | When building both static and shared libs on MinGW with autotools, the build broke down without any error message. This commit makes such a build work
* Add support in the encoder for up to 20 bit sample ratesCon Kolivas2022-04-131-1/+1
| | | | | | | Now that many DACs support up to 768kHz, add support for these sample rates to the encoder. Files produced with these sample rates are already decodable by the reference decoder. Update documentation and tests accordingly.
* include: Escape number signs to suppress warningsNotTsunami2019-11-193-9/+9
| | | | | | | | Doxygen sees '#' as a cross-reference, which this is not in this case. This will silence the following warning that pops up frequently when building with docs: warning: explicit link request to 'defines' could not be resolved The code shorthand tag was removed in include\FLAC\all.h to remain synonymous with other mentions of #define.
* Fix msvc build after commit b917d456sezero2019-10-191-8/+11
| | | | Closes: https://github.com/xiph/flac/issues/152
* Replace unsigned with uint32_t in prototypes; Fixes DJGPP builds.NY001232019-10-192-4/+4
|
* make dllexport work with compilers other than MSVCsezero2019-10-102-2/+2
| | | | | | | | the issue is, flac and metaflac exes rely on flac_internal_???_utf8() procedures from windows_unicode_filenames.c and there is no easy way to exclude them from exports without breaking things. So export them explicitly (they are exported anyway w/o this patch), but add a FIXME note about the kludge in windows_unicode_filenames.c.
* move the new public get_decoder_client_data function to public header.sezero2019-10-101-0/+10
|
* Fix a number of gcc 9.2 compiler warningsErik de Castro Lopo2019-09-151-1/+3
|
* Fix function redefinition on arm-none-eabi compilersoreo6392019-09-154-9/+9
|
* Switch to utimensat for newer POSIX versionsRosen Penev2019-08-201-1/+9
| | | | | | | | Some libcs like uClibc-ng can optionally disable deprecated functions. utime is one of them. When done so, both the header and the function go missing. This fixes flac_utime to work in such a situation.
* Move CreateFile_utf8 function to a more logical placelvqcl2018-08-252-5/+3
|
* move CreateFile function outside of libFLAClvqcl2018-08-193-8/+5
|
* Fix miscellaneous typos.luz.paz2018-05-245-5/+5
| | | | Found via `codespell -q 3`
* Fix for missing WINAPI_FAMILY_PARTITIONErik de Castro Lopo2018-02-101-0/+4
| | | | This is macro identifier is not defined, define it to `0`.
* FLAC++: Add missing prototype for construct_blockThomas Zander2017-06-231-0/+9
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Fix missing SIZE_MAX definition on AndroidErik de Castro Lopo2017-05-031-0/+4
|
* 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>
* 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>
* Fix compile with cygwinRosen Penev2017-02-091-1/+1
| | | | | | | | | 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>
* include/share/compat.h: Only define inline for CErik de Castro Lopo2017-01-241-1/+1
| | | | Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Do not override CFLAGS, as CFLAGS is a user flag.David Seifert2017-01-191-1/+1
| | | | | | | | | * 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>
* 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-193-17/+9
| | | | | | | 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
|