summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gitlab ci: Install pandoc depHEADmasterRalph Giles2022-09-221-2/+2
| | | | This is needed to generate the manpages for the `distcheck` target.
* Release FLAC 1.4.11.4.1Martijn van Beurden2022-09-229-8/+58
|
* [CMake] Create dir for pandoc generationMartijn van Beurden2022-09-221-0/+1
|
* [CMake] C flags were set while CXX flags were meantMartijn van Beurden2022-09-211-1/+1
|
* 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-204-21/+39
|
* Update API and tool docsMartijn van Beurden2022-09-203-20/+34
|
* Define WINAPI_FAMILY stuff on platforms that do not provide themMartijn van Beurden2022-09-202-0/+9
|
* don't call GetFileInformationByHandle on Universal Windows Platform buildsSteve Lhomme2022-09-201-0/+8
| | | | | | | | It cannot be called: https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfileinformationbyhandle We can get the same information with GetFileInformationByHandleEx(FileIdInfo): https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getfileinformationbyhandleex
* don't call CreateFileW on Universal Windows Platform buildsSteve Lhomme2022-09-201-0/+11
| | | | | | | | It cannot be called: https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew There is CreateFile2 which is very similar: https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfile2
* disable console using on Universal Windows Platform buildsSteve Lhomme2022-09-201-0/+9
| | | | | | | | | | There's no support for the console. These functions cannot be used * GetStdHandle(): https://learn.microsoft.com/en-us/windows/console/getstdhandle * GetConsoleScreenBufferInfo(): https://learn.microsoft.com/en-us/windows/console/getconsolescreenbufferinfo * WriteConsoleW(): https://learn.microsoft.com/en-us/windows/console/writeconsole Instead send logs to the debug output
* Remove added empty lineMartijn van Beurden2022-09-201-1/+0
|
* stream_decoder.c: move sys/stat.h include after sys/types.h.Ozkan Sezer2022-09-201-1/+2
|
* getopt: avoid K&R function definitionsJohannes Kauffmann2022-09-201-20/+11
| | | | | | | | This avoids warnings on clang-16 such as: getopt/getopt.c:315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] exchange (argv) ^
* Include api dir in distributionMartijn van Beurden2022-09-183-7/+34
| | | Also, don't create empty Doxygen tag and api directory
* Update .travis.ymlMartijn van Beurden2022-09-181-1/+1
| | | Similar to commit 1839370
* Do not make empty man pages, use either pandoc or prebuild (#440)Martijn van Beurden2022-09-182-9/+10
| | | | | | | | | * Do not make empty man pages, use either pandoc or prebuild A check is added to configure whether flac.1 and metaflac.1 are already build when pandoc is not available. This is the case in for example dist packages * Fix typo in new automake conditional
* [CMake] Prepend compiler flags, fix Clang compiler warningsMartijn van Beurden2022-09-173-5/+9
| | | | | | | | | Because of issue https://github.com/xiph/flac/issues/437 compiler flags are prepended instead of appended, so the user can override them without altering the CMakeLists.txt. Also, Clang doesn't support per-function optimize options, so in CMake the fma file gets that option per-file. This is not supported by automake.
* Warn user when encoding to stdout that checksum isn't written (#445)Martijn van Beurden2022-09-161-0/+7
| | | Fixes https://github.com/xiph/flac/issues/428
* Make sure git doesn't try to get version from other repositoryMartijn van Beurden2022-09-163-8/+6
| | | Fixes https://github.com/xiph/flac/issues/443
* Remove __MSVCRT_VERSION__=0x0601 from configure.acMartijn van Beurden2022-09-151-1/+0
| | | | This does not seem to be necessary anymore, is not used in CMake and inhibits building against UWP and UCRT with MinGW
* [CI] Set INSTALL_MANPAGES=OFFMartijn van Beurden2022-09-151-1/+1
|
* [CMake] Make building of man pages possibleMartijn van Beurden2022-09-151-1/+19
| | | | This mirrors https://github.com/xiph/flac/pull/440 and fixes https://gitlab.xiph.org/xiph/flac/-/issues/2
* install cmake module in default cmake search pathTomasz Kłoczko2022-09-151-4/+4
| | | | | | | | cmake uses $(datadir}/cmake and $(libdir}/cmake as base path to search for its moduels. Install FLAC cmake module in $(libdir}/cmake/FLAC because it provides arch dependent API/ABI. Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
* Fix man pages lvl 1 install pathTomasz Kłoczko2022-09-151-1/+1
| | | | | | | Install those pages in "${CMAKE_INSTALL_MANDIR}/man1 instead directly in "${CMAKE_INSTALL_MANDIR}. Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
* Fix endianness display in endswap test (cosmetic issue)Martijn van Beurden2022-09-152-4/+1
| | | | | | As CPU_IS_LITTLE_ENDIAN is used nowehere except in test_libflac, switch to CPU_IS_BIG_ENDIAN instead, which is actually used in the code at several places. CMake didn't set the former but does set the latter.
* Remove assert that is no longer trueMartijn van Beurden2022-09-141-2/+0
| | | | This was never strictly true, but the assert fired in normal use since commit a2c8ae5
* Fix wrong format string specifier.Jörn Heusipp2022-09-141-1/+1
| | | | Fixes https://github.com/xiph/flac/issues/433
* Remove unused release scriptMartijn van Beurden2022-09-141-121/+0
|
* Release FLAC 1.4.01.4.0Martijn van Beurden2022-09-097-7/+7
|
* Fix make check on MinGW when building shared libraryMartijn van Beurden2022-09-072-3/+3
|
* Update CHANGELOG.md and AUTHORSMartijn van Beurden2022-09-052-10/+19
|
* Restructure README, API and HTML documentationMartijn van Beurden2022-09-0528-4075/+372
| | | | | | Tool documentation has moved to man directory, other dev docs to README.md and CONTRIBUTING.md. User documentation is already on the website and doesn't really belong in the source code. Also, fix CMake so that it uses Doxyfile.in instead of using defaults.
* [CI] Add Windows build with shared libsMartijn van Beurden2022-09-041-0/+5
|
* fuzzer: Do not add corrupt vorbiscomment metadata blockMartijn van Beurden2022-08-311-7/+16
| | | | Issue: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50509 Credit: Oss-Fuzz
* Update ABI checkMartijn van Beurden2022-08-302-0/+0
|
* Add struct tag to FLAC__StreamMetadata (#416)Martijn van Beurden2022-08-291-1/+1
|
* Protect window functions from NaNMartijn van Beurden2022-08-231-3/+21
| | | | Credit: oss-fuzz Issue: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47747
* Add ABI check to CI Martijn van Beurden2022-08-225-5/+37
| | | | | This adds a dump of current ABIs (which will probably be released as 1.4.0) to the test directory, and adds a comparison to current ABIs to the distcheck
* Fix integer overflow in seeking codeMartijn van Beurden2022-08-201-3/+4
| | | | This issue popped up in ci-fuzz, unrelated to the PR itself.
* Fix some OOM metadata bugs, disable OOM checking in metadata fuzzingMartijn van Beurden2022-08-204-17/+36
| | | | | | For now OOM emulation in fuzzer_metadata is disabled, as I really want to get as much merged as soon as possible. Need to get back to this at some point
* Add write callback abort check to seeking fuzzerMartijn van Beurden2022-08-201-1/+16
| | | | | | If the write callback calls for an abort, this must be honored. This commit adds a check to ascertain the write callback isn't called again
* Don't overwrite bad state with seek errorMartijn van Beurden2022-08-201-0/+5
| | | | | In case memory allocation fails or decoding is aborted during seeking, do not overwrite these states with a seek error
* Throw memory allocation error when side subframe allocation failsMartijn van Beurden2022-08-201-1/+6
|
* Move entropy partitioning result allocation so it can be checkedMartijn van Beurden2022-08-202-3/+22
| | | | | | | | For some reason realloc failing to allocate space to store the results of entropy partitioning was not handled at all. The realloc is moved to a spot where it is possible to set encoder state. This also moves it from deep within a loop to being called only occasionally
* Do not memset when allocation failsMartijn van Beurden2022-08-202-18/+12
| | | | Also remove some nearby unused code
* Add OOM checking to fuzzingMartijn van Beurden2022-08-206-19/+120
|
* Leave metadata items untouched if resize function failsMartijn van Beurden2022-08-203-16/+46
|
* Add and use _nofree variants of safe_realloc functionsMartijn van Beurden2022-08-207-11/+44
| | | | | | | | | | | | | | | | | 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
|