This is an informal changelog, a summary of changes in each release. (See also <ahref="documentation_bugs.html">known bugs</a>.) Particulary important for developers is the precise description of changes to the library interfaces. See also the <ahref="api/group__porting.html">porting guide</a> for specific instructions on porting to newer versions of FLAC.<br/>
<li>Move development to Xiph.org <ahref="http://git.xiph.org/?p=flac.git;a=summary">git repository</a>.</li>
<li>The <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_sector_align">--sector-align</a></span> option of <spanclass="commandname">flac</span> has been deprecated and may not exist in future versions. <ahref="http://www.etree.org/shnutils/shntool/">shntool</a> provides similar functionality.</li>
<li>Support for the RF64 and Wave64 formats in <spanclass="commandname">flac</span> (see below).</li>
<li>Better handling of cuesheets with non-CD-DA sample rates.</li>
<li>The <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_ignore_chunk_sizes">--ignore-chunk-sizes</a></span> option has been added to the <spanclass="commandname">flac</span> command line tool.</li>
</ul>
</li>
<li>
FLAC format:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
Ogg FLAC format:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
flac:
<ul>
<li>Added support for encoding from and decoding to the RF64 format, and a new corresponding option <spanclass="argument"><ahref="#flac_options_force_rf64_format">--force-rf64-format</a></span>. (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1762502&group_id=13478&atid=363478">SF #1762502</a>). <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_keep_foreign_metadata">--keep-foreign-metadata</a></span> is also supported.</li>
<li>Added support for encoding from and decoding to the Sony Wave64 format, and a new corresponding option <spanclass="argument"><ahref="#flac_options_force_wave64_format">--force-wave64-format</a></span>. (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1769582&group_id=13478&atid=363478">SF #1769582</a>). <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_keep_foreign_metadata">--keep-foreign-metadata</a></span> is also supported.</li>
<li>Added new options <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_preserve_modtime">--preserve-modtime</a></span> and <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_no_preserve_modtime">--no-preserve-modtime</a></span> to specify whether or not output files should copy the timestamp and permissions from their input files. The default is <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_preserve_modtime">--preserve-modtime</a></span> as in previous versions. (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1805428&group_id=13478&atid=363478">SF #1805428</a>).</li>
<li>Allow MM:SS:FF and MM:SS.SS time formats in non-CD-DA cuesheets. (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1947353&group_id=13478&atid=363478">SF #1947353</a>, <ahref="https://sourceforge.net/tracker2/index.php?func=detail&aid=2182432&group_id=13478&atid=113478">SF #2182432</a>)</li>
<li>The <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_sector_align">--sector-align</a></span> option of <spanclass="commandname">flac</span> has been deprecated and may not exist in future versions. <ahref="http://www.etree.org/shnutils/shntool/">shntool</a> provides similar functionality. (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1805946&group_id=13478&atid=363478">SF #1805946</a>)</li>
<li>Improved error message when user attempts to decode a non-FLAC file (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=2222789&group_id=13478&atid=113478">SF #2222789</a>).</li>
<li>Fix bug where <spanclass="commandname">flac</span> was disallowing use of <spanclass="argument">--replay-gain</span> when encoding from stdin (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1840124&group_id=13478&atid=113478">SF #1840124</a>).</li>
<li>Fix bug with fractional seconds on some locales (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1815517&group_id=13478&atid=113478">SF #1815517</a>, <ahref="https://sourceforge.net/tracker2/?func=detail&aid=1858012&group_id=13478&atid=113478">SF #1858012</a>).</li>
<li>Read and write appropriate channel masks for 6.1 and 7.1 surround input WAV files. Documentation was also updated.</li>
<li>Correct Wave64 GUIDs.</li>
<li>Support 56kHz to 192kHz gain analysis (patch from Earl Chew)</li>
<li>Add ability to handle utf8 filenames on Windows (large set of patches from Janne Hyvärinen)</li>
</ul>
</li>
<li>
metaflac:
<ul>
<li>Allow MM:SS:FF and MM:SS.SS time formats in non-CD-DA cuesheets. (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1947353&group_id=13478&atid=363478">SF #1947353</a>, <ahref="https://sourceforge.net/tracker2/index.php?func=detail&aid=2182432&group_id=13478&atid=113478">SF #2182432</a>)</li>
</ul>
</li>
<li>
plugins:
<ul>
<li>Minor updates for XMMS plugin.</li>
<li>Winamp2 plugin was dropped because Nullsoft has provided native FLAC support since 2006.</li>
</ul>
</li>
<li>
build system:
<ul>
<li>Fixes for autotools (including <ahref="https://sourceforge.net/tracker2/?func=detail&aid=1859664&group_id=13478&atid=313478">SF #1859664</a>).</li>
<li>Fixes for MinGW (including <ahref="https://sourceforge.net/tracker2/?func=detail&aid=2000973&group_id=13478&atid=113478">SF #2000973</a>, <ahref="https://sourceforge.net/tracker2/?func=detail&aid=2209829&group_id=13478&atid=113478">SF #2209829</a>).</li>
<li>Fixes for gcc (including <ahref="https://sourceforge.net/tracker2/?func=detail&aid=1834168&group_id=13478&atid=113478">SF #1834168</a>, <ahref="https://sourceforge.net/tracker2/?func=detail&aid=2002481&group_id=13478&atid=113478">SF #2002481</a>).</li>
<li>Fixes for Sun Studio/Forte (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1701960&group_id=13478&atid=313478">SF #1701960</a>).</li>
<li>Fixes for windows builds (including <ahref="https://sourceforge.net/tracker2/?func=detail&aid=1676822&group_id=13478&atid=113478">SF #1676822</a>, <ahref="https://sourceforge.net/tracker2/?func=detail&aid=1756624&group_id=13478&atid=363478">SF #1756624</a>, <ahref="https://sourceforge.net/tracker2/?func=detail&aid=1809863&group_id=13478&atid=113478">SF #1809863</a>, <ahref="https://sourceforge.net/tracker2/?func=detail&aid=1911149&group_id=13478&atid=363478">SF #1911149</a>).</li>
<li>Fixes for FreeBSD and OpenBSD.</li>
<li>Compile with GNU gcc _FORTIFY_SOURCE=2 and stack protection where those features are detected.</li>
<li>Enable a bunch of GCC compiler warnings and fix code that generates warnings.</li>
and <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_apply_replaygain_which_is_not_lossless">--apply-replaygain-which-is-not-lossless</a></span>
option for <spanclass="commandname">flac</span>.</li>
</ul>
</li>
<li>
libraries:
<ul>
<li>libFLAC encoder was defaulting to level 0 compression instead of 5 (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1816825&group_id=13478&atid=113478">SF #1816825</a>).</li>
<li>Fix bug in bitreader handling of read callback returning a short count (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=2490454&group_id=13478&atid=113478">SF #2490454</a>).</li>
<li>Improve decoder's ability to distinguish between a FLAC sync code and an MPEG one (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=2491433&group_id=13478&atid=113478">SF #2491433</a>).</li>
<li>With the new <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_keep_foreign_metadata">--keep-foreign-metadata</a></span> in <spanclass="commandname">flac</span>, non-audio RIFF and AIFF chunks can be stored in FLAC files and recreated when decoding. This allows, among other, things support for archiving BWF files and other WAVE files from editing tools that preserves all the metadata. </li>
</ul>
</li>
<li>
FLAC format:
<ul>
<li>Specified 2 new APPLICATION metadata blocks for storing WAVE and AIFF chunks (for use with <ahref="documentation_tools_flac.html#flac_options_keep_foreign_metadata">--keep-foreign-metadata</a> in <spanclass="commandname">flac</span>).</li>
<li>The lead-out track number for non-CDDA cuesheets now must be 255.</li>
</ul>
</li>
<li>
Ogg FLAC format:
<ul>
<li>This is not a format change, but changed default extension for Ogg FLAC from .ogg to .oga, according to new Xiph <ahref="http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions">specification</a> (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1762492&group_id=13478&atid=113478">SF #1762492</a>).</li>
</ul>
</li>
<li>
flac:
<ul>
<li>Added a new option <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_no_utf8_convert">--no-utf8-convert</a></span> which works like it does in <spanclass="commandname">metaflac</span> (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=973740&group_id=13478&atid=363478">SF #973740</a>).</li>
<li>Added a new option <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_keep_foreign_metadata">--keep-foreign-metadata</a></span> which can save/restore RIFF and AIFF chunks to/from FLAC files (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=568264&group_id=13478&atid=363478">SF #363478</a>).</li>
<li>Changed default extension for Ogg FLAC from .ogg to .oga, according to new Xiph <ahref="http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions">specification</a> (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1762492&group_id=13478&atid=113478">SF #1762492</a>).</li>
<li>Fixed bug where using <spanclass="argument">--replay-gain</span> without any padding option caused only a small PADDING block to be created (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1760790&group_id=13478&atid=113478">SF #1760790</a>).</li>
<li>Fixed bug where encoding from stdin on Windows could fail if WAVE/AIFF contained unknown chunks (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1776803&group_id=13478&atid=113478">SF #1776803</a>).</li>
<li>Fixed bug where importing non-CDDA cuesheets would cause an invalid lead-out track number (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1764105&group_id=13478&atid=113478">SF #1764105</a>).</li>
</ul>
</li>
<li>
metaflac:
<ul>
<li>Changed default extension for Ogg FLAC from .ogg to .oga, according to new Xiph <ahref="http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions">specification</a> (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1762492&group_id=13478&atid=113478">SF #1762492</a>).</li>
<li>Fixed bug where importing non-CDDA cuesheets would cause an invalid lead-out track number (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1764105&group_id=13478&atid=113478">SF #1764105</a>).</li>
</ul>
</li>
<li>
plugins:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
build system:
<ul>
<li>New configure option <spanclass="argument">--disable-cpplibs</span> to prevent building libFLAC++ (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1723295&group_id=13478&atid=313478">SF #1723295</a>).</li>
<li>Fixed bug compiling <spanclass="commandname">flac</span> without Ogg support (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1760786&group_id=13478&atid=113478">SF #1760786</a>).</li>
<li>Fixed bug where sometimes an existing installation of flac could interfere with the build process (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1763690&group_id=13478&atid=113478">SF #1763690</a>).</li>
<li>OS X fixes (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1786225&group_id=13478&atid=313478">SF #1786225</a>).</li>
<li>Added new <ahref="documentation_tools_flac.html#tutorial">tutorial</a> section for <spanclass="commandname">flac</span>.</li>
<li>Added <ahref="documentation_example_code.html">example code</a> section for using libFLAC/libFLAC++.</li>
</ul>
</li>
<li>
libraries:
<ul>
<li>libFLAC: Fixed very rare seek bug (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1684049&group_id=13478&atid=113478">SF #1684049</a>).</li>
<li>libFLAC: Fixed seek bug with Ogg FLAC and small streams (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1792172&group_id=13478&atid=113478">SF #1792172</a>).</li>
<li>libFLAC: Fix assembler code to be position independent.</li>
<li>libFLAC: Optimization of a number of inner loop functions.</li>
<li>Added support for encoding the residual coding method introduced in libFLAC 1.2.0 (RESIDUAL_CODING_METHOD_PARTITIONED_RICE2) which will encode 24-bit files more efficiently.</li>
<li>One of the reserved bits in the FLAC frame header has been assigned for future use; make sure to refer to the <ahref="http://flac.sourceforge.net/api/group__porting__1__1__4__to__1__2__0.html">porting guide</a> if you parse FLAC streams manually.</li>
</ul>
</li>
<li>
Ogg FLAC format:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
flac:
<ul>
<li>Added runtime detection of SSE OS support for most operating systems.</li>
<li>Added a new undocumented option <spanclass="argument">--ignore-chunk-sizes</span> for ignoring the size of the 'data' chunk (WAVE) or 'SSND' chunk (AIFF). Can be used to encode files with bogus data sizes (e.g. with WAV files piped from foobar2000 to flac.exe as an external encoder). <b>Use with caution</b>: all subsequent data is treated as audio, so the data/SSND chunk must be the last or the following data/tags will be treated as audio and encoded.</li>
</ul>
</li>
<li>
metaflac:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
plugins:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
build system:
<ul>
<li>Added solution and project files for building with VC++ 2005.</li>
</ul>
</li>
<li>
libraries:
<ul>
<li>Added runtime detection of SSE OS support for most operating systems.</li>
<li>Fixed bug where invalid seek tables could cause some seeks to fail.</li>
<li>Added support for decoding the new residual coding method (RESIDUAL_CODING_METHOD_PARTITIONED_RICE2).</li>
</ul>
</li>
<li>
Interface changes (see also the <ahref="http://flac.sourceforge.net/api/group__porting__1__1__4__to__1__2__0.html">porting guide</a> for specific instructions on porting to FLAC 1.2.0):
<li>Improved compression with no change to format or decrease in speed.</li>
<li>Encoding and decoding speedups for all modes. Encoding at -8 is twice as fast.</li>
</ul>
</li>
<li>
FLAC format:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
Ogg FLAC format:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
flac:
<ul>
<li>Improved compression with no change to format or decrease in speed.</li>
<li>Encoding and decoding speedups for all modes. Encoding at -8 is twice as fast.</li>
<li>Added a new option <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_warnings_as_errors">-w,--warnings-as-errors</a></span> for treating all warnings as errors.</li>
<li>Allow <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_picture">--picture</a></span> option to take only a filename, and have all other attributes extracted from the file itself.</li>
<li>Fixed a bug that caused suboptimal default compression settings in some locales (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1608883&group_id=13478&atid=113478">SF #1608883</a>).</li>
<li>Fixed a bug where FLAC-to-FLAC transcoding of a corrupted FLAC file would truncate the transcoded file at the first error (<ahref="http://sourceforge.net/tracker2/?func=detail&aid=1615019&group_id=13478&atid=113478">SF #1615019</a>).</li>
<li>Fixed a bug where using <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_decode_through_errors">-F</a></span> with FLAC-to-FLAC transcoding of a corrupted FLAC would have no effect (<ahref="http://sourceforge.net/tracker2/?func=detail&aid=1615391&group_id=13478&atid=113478">SF #1615391</a>).</li>
<li>Fixed a bug where new PICTURE metadata blocks specified with <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_picture">--picture</a></span> would not be transferred during FLAC-to-FLAC transcoding (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1627993&group_id=13478&atid=113478">SF #1627993</a>).</li>
</ul>
</li>
<li>
metaflac:
<ul>
<li>Allow <spanclass="argument"><ahref="documentation_tools_metaflac.html#metaflac_shorthand_import_picture_from">--import-picture-from</a></span> option to take only a filename, and have all other attributes extracted from the file itself.</li>
</ul>
</li>
<li>
plugins:
<ul>
<li>Fixed a bug in the XMMS plugin where Ctrl-3 (file info) would cause a crash if the file did not exist (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1634941&group_id=13478&atid=313478">SF #1634941</a>).</li>
</ul>
</li>
<li>
build system:
<ul>
<li>Fixed a makefile linkage bug with libogg (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1611414&group_id=13478&atid=113478">SF #1611414</a>).</li>
<li>Added pkg-config files for libFLAC and libFLAC++ (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1647881&group_id=13478&atid=313478">SF #1647881</a>).</li>
<li>Added <spanclass="argument">--disable-ogg</span> option for building without Ogg support even if libogg is installed (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1196996&group_id=13478&atid=113478">SF #1196996</a>).</li>
</ul>
</li>
<li>
libraries:
<ul>
<li>Completely rewritten bitbuffer which uses native machine word size instead of bytes for dramatic speed improvements. The speedup should be most dramatic on CPUs with slower byte manipulation capability and big-endian machines.</li>
<li>Much faster Rice partition size estimation which greatly speeds encoding in higher modes.</li>
<li>Increased compression for all modes.</li>
<li>Reduced memory requirements for encoder and decoder.</li>
<li>Fixed a bug with default apodization settings that were erroneous in some locales (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1608883&group_id=13478&atid=113478">SF #1608883</a>).</li>
</ul>
</li>
<li>
Interface changes:
<ul>
<li>
libFLAC:
<ul>
<li>(behavior only) FLAC__stream_encoder_set_metadata() now makes a copy of the "metadata" array of pointers (but still not copies of the objects themselves) so the client does not need to maintain its copy of the array after the call.</li>
<li>Improved compression with no impact on format or decoding speed.</li>
<li>Much better recovery for corrupted files</li>
<li>Better multichannel support</li>
<li>Large file (>2GB) support everywhere</li>
<li><spanclass="commandname">flac</span> now supports FLAC and Ogg FLAC as input to the encoder (e.g. can re-encode FLAC to FLAC) and preserve all the metadata like tags, etc.</li>
<li>New <spanclass="code"><ahref="format.html#def_PICTURE">PICTURE</a></span> metadata block for storing things like cover art, new <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_picture">--picture</a></span> option to <spanclass="commandname">flac</span> and <spanclass="argument"><ahref="documentation_tools_metaflac.html#metaflac_shorthand_import_picture_from">--import-picture-from</a></span> option to <spanclass="commandname">metaflac</span> for importing pictures, new <spanclass="argument"><ahref="documentation_tools_metaflac.html#metaflac_shorthand_export_picture_to">--export-picture-to</a></span> option to <spanclass="commandname">metaflac</span> for exporting pictures, and metadata API <ahref="api/group__flac__metadata__level0.html#ga3">additions</a> for searching for suitable pictures based on type, size and color constraints.</li>
<li>Support for new <tt>REPLAYGAIN_REFERENCE_LOUDNESS</tt> tag.</li>
<li>Fixed a bug in Ogg FLAC encoding where metadata was not being updated properly. Existing Ogg FLAC files should be recoded to fix up the metadata, e.g. <spanclass="command">flac -Vf -S 10s --ogg file.ogg</span></li>
<li>In the developer libraries, the interface has been simplfied by merging the three decoding layers into a single class; ditto for the encoders. Also, libOggFLAC has been merged into libFLAC and libOggFLAC++ has been merged into libFLAC++ so there is a single API supporting both native FLAC and Ogg FLAC.</li>
</ul>
</li>
<li>
FLAC format:
<ul>
<li>New <spanclass="code"><ahref="format.html#def_PICTURE">PICTURE</a></span> metadata block for storing things like cover art.</li>
<li>Speaker assignments and channel orders for 3-6 channels (see <ahref="format.html#frame_header">frame header</a>).</li>
<li>Further restrictions on the <ahref="format.html#subset">FLAC subset</a> when the sample rate is <=48kHz; in this case the maximum LPC order is now 12 and maximum blocksize is 4608. This is to further limit the processing and memory requirements for hardware implementations while not measurably affecting compression.</li>
</ul>
</li>
<li>
Ogg FLAC format:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
flac:
<ul>
<li>Improved the <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_decode_through_errors">-F</a></span> option to allow decoding of FLAC files whose metadata is corrupted, and other kinds of severe corruption.</li>
<li>Encoder can now take FLAC and Ogg FLAC as input. The output FLAC file will have all the same metadata as the original unless overridden with options on the command line.</li>
<li>Encoder can now take WAVEFORMATEXTENSIBLE WAVE files as input; decoder will output WAVEFORMATEXTENSIBLE WAVE files when necessary to conform to the latest Microsoft specifications.</li>
<li>Now properly supports AIFF and WAVEFORMATEXTENSIBLE multichannel input, performing necessary channel reordering both for encoding and decoding. WAVEFORMATEXTENSIBLE channel mask is also saved to a tag on encoding and restored on decoding for situations when there is no natural mapping to FLAC channel assignments.</li>
<li>Expanded support for "odd" sample resolutions to WAVE and AIFF input; all resolutions from 4 to 24 bits-per-sample now supported for all input types.</li>
<li>Added a new option <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_tag_from_file">--tag-from-file</a></span> for setting a tag from file (e.g. for importing a cuesheet as a tag).</li>
<li>Added a new option <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_picture">--picture</a></span> for adding pictures.</li>
<li>Added a new option <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_apodization">--apodization</a></span> for specifying the window function(s) to be used in LPC analysis.</li>
<li>Added support for encoding from non-compressed AIFF-C (<ahref="https://sourceforge.net/tracker2/?func=detail&atid=113478&aid=1090933&group_id=13478">SF #1090933</a>).</li>
<li>Importing of non-CDDA-compliant cuesheets now only issues a warning, not an error (see <ahref="http://www.hydrogenaudio.org/forums/index.php?showtopic=31282">here</a>).</li>
<li>MD5 comparison failures on decoding are now an error instead of a warning and will also return a non-zero exit code (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1493725&group_id=13478&atid=113478">SF #1493725</a>).</li>
<li>The default padding size is now 8K, or 64K if the input audio stream is more than 20 minutes long.</li>
<li>Fixed a bug in cuesheet parsing where it would return an error if the last line of the cuesheet did not end with a newline.</li>
<li>Fixed a bug that caused a crash when <spanclass="argument">-a</span> and <spanclass="argument">-t</span> were used together (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1229481&group_id=13478&atid=113478">SF #1229481</a>).</li>
<li>Fixed a bug with --sector-align where appended samples were not always totally silent (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1237707&group_id=13478&atid=113478">SF #1237707</a>).</li>
<li>Fixed bugs with --sector-align and raw input files.</li>
<li>Fixed a bug printing out unknown AIFF subchunk names (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1267476&group_id=13478&atid=113478">SF #1267476</a>).</li>
<li>Fixed a bug where WAVE files with "data" subchunks of size 0 where accepted (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1293830&group_id=13478&atid=113478">SF #1293830</a>).</li>
<li>Fixed a bug where sync error at end-of-stream of truncated files was not being caught (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1244071&group_id=13478&atid=113478">SF #1244071</a>).</li>
<li>Fixed a problem with filename parsing if file does not have extension but also has a . in the path (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1161916&group_id=13478&atid=113478">SF #1161916</a>).</li>
<li>Fixed a problem with fractional-second parsing for <spanclass="argument">--skip</span>/<spanclass="argument">--until</span> in some locales (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1031043&group_id=13478&atid=113478">SF #1031043</a>).</li>
<li>Increase progress report rate when -p and -e are used together (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1580122&group_id=13478&atid=113478">SF #1580122</a>).</li>
</ul>
</li>
<li>
metaflac:
<ul>
<li>Added support for read-only operations on Ogg FLAC files.</li>
<li>Added a new option <spanclass="argument"><ahref="documentation_tools_metaflac.html#metaflac_shorthand_set_tag_from_file">--set-tag-from-file</a></span> for setting a tag from file (e.g. for importing a cuesheet as a tag).</li>
<li>Added a new option <spanclass="argument"><ahref="documentation_tools_metaflac.html#metaflac_shorthand_import_picture_from">--import-picture-from</a></span> for importing pictures.</li>
<li>Added a new option <spanclass="argument"><ahref="documentation_tools_metaflac.html#metaflac_shorthand_export_picture_to">--export-picture-to</a></span> for exporting pictures.</li>
<li>Added shorthand operation <spanclass="argument"><ahref="documentation_tools_metaflac.html#metaflac_shorthand_remove_replay_gain">--remove-replay-gain</a></span> for removing ReplayGain tags.</li>
<li><spanclass="argument"><ahref="documentation_tools_metaflac.html#metaflac_shorthand_export_cuesheet_to">--export-cuesheet-to</a></span> now properly specifies the FLAC file name (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1272825&group_id=13478&atid=363478">SF #1272825</a>).</li>
<li>Importing of non-CDDA-compliant cuesheets now issues a warning.</li>
<li>Removed the following deprecated tag editing options; you should use the new option names shown instead:
<ul>
<li>Removed <spanclass="argument">--show-vc-vendor</span>; use <spanclass="argument">--show-vendor-tag</span></li>
<li>Removed <spanclass="argument">--show-vc-field</span>; use <spanclass="argument">--show-tag</span></li>
<li>Removed <spanclass="argument">--remove-vc-all</span>; use <spanclass="argument">--remove-all-tags</span></li>
<li>Removed <spanclass="argument">--remove-vc-field</span>; use <spanclass="argument">--remove-tag</span></li>
<li>Removed <spanclass="argument">--remove-vc-firstfield</span>; use <spanclass="argument">--remove-first-tag</span></li>
<li>Removed <spanclass="argument">--set-vc-field</span>; use <spanclass="argument">--set-tag</span></li>
<li>Removed <spanclass="argument">--import-vc-from</span>; use <spanclass="argument">--import-tags-from</span></li>
<li>Removed <spanclass="argument">--export-vc-to</span>; use <spanclass="argument">--export-tags-to</span></li>
</ul>
</li>
<li>Disallow multiple input FLAC files when --import-tags-from=- is used (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1082577&group_id=13478&atid=113478">SF #1082577</a>).</li>
</ul>
</li>
<li>
plugins:
<ul>
<li>When ReplayGain is on, if tags for the preferred kind of gain (album/track) are not in a stream, the other kind will be used.</li>
<li>Added ReplayGain info to file info box in XMMS plugin</li>
<li>Fixed UTF-8 decoder to disallow non-shortest-form and surrogate sequences (see <ahref="http://www.unicode.org/versions/corrigendum1.html">here</a>).</li>
</ul>
</li>
<li>
build system:
<ul>
<li>Added support for building on OS/2 with EMX (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1229495&group_id=13478&atid=113478">SF #1229495</a>)</li>
<li>Added support for building with Borland C++ (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1599018&group_id=13478&atid=313478">SF #1599018</a>)</li>
<li>Added a <spanclass="argument">--disable-xmms-plugin</span> option to <spanclass="command">configure</span> to prevent building the XMMS plugin (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=930494&group_id=13478&atid=363478">SF #930494</a>).</li>
<li>Added a <spanclass="argument">--disable-doxygen-docs</span> option to <spanclass="command">configure</span> for disabling Doxygen-based API doc generation (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1365935&group_id=13478&atid=313478">SF #1365935</a>).</li>
<li>Added a <spanclass="argument">--disable-thorough-tests</span> option to <spanclass="command">configure</span> to do the basic library, stream, and tool tests in a reasonable time (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1077948&group_id=13478&atid=363478">SF #1077948</a>).</li>
<li>Added large file support with <spanclass="argument">AC_SYS_LARGEFILE</span>; use <spanclass="argument">--disable-largefile</span> with <spanclass="command">configure</span> to disable.</li>
</ul>
</li>
<li>
libraries:
<ul>
<li>Merged libOggFLAC into libFLAC; both formats are now supporte through the same API.</li>
<li>Merged libOggFLAC++ into libFLAC++; both formats are now supporte through the same API.</li>
<li>libFLAC and libFLAC++: Simplified encoder setup with new <spanclass="argument">FLAC__stream_encoder_set_compression_level()</span> function.</li>
<li>libFLAC: Improved compression with no impact on FLAC format or decoding time by adding a windowing stage before LPC analysis.</li>
<li>libFLAC: Fixed a bug where missing STREAMINFO fields (min/max framesize, total samples, MD5 sum) and seek point offsets were not getting rewritten back to Ogg FLAC file (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1338969&group_id=13478&atid=113478">SF #1338969</a>).</li>
<li>libFLAC: Fixed a bug in cuesheet parsing where it would return an error if the last line of the cuesheet did not end with a newline.</li>
<li>libFLAC: Fixed UTF-8 decoder to disallow non-shortest-form and surrogate sequences (see <ahref="http://www.unicode.org/versions/corrigendum1.html">here</a>).</li>
<li>libFLAC: Fixed a bug in the return value for <spanclass="argument">FLAC__stream_decoder_set_metadata_respond_application()</span> and <spanclass="argument">FLAC__stream_decoder_set_metadata_ignore_application()</span> when there was a memory allocation error (<ahref="https://sourceforge.net/tracker2/?func=detail&aid=1235005&group_id=13478&atid=113478">SF #1235005</a>).</li>
</ul>
</li>
<li>
Interface changes (see also the <ahref="http://flac.sourceforge.net/api/group__porting__1__1__2__to__1__1__3.html">porting guide</a> for specific instructions on porting to FLAC 1.1.3):
<ul>
<li>
all libraries;
<ul>
<li>Merged libOggFLAC into libFLAC; both formats are now supporte through the same API.</li>
<li>Merged libOggFLAC++ into libFLAC++; both formats are now supporte through the same API.</li>
<li>Merged seekable stream decoder and file decoder into the stream decoder.</li>
<li>Merged seekable stream encoder and file encoder into the stream encoder.</li>
<li>Added #defines for the API version number to make porting easier; see <tt>include/lib*FLAC*/export.h</tt>.</li>
<li><b>Added</b> FLAC__metadata_chain_read_ogg() and FLAC__metadata_chain_read_ogg_with_callbacks()</li>
<li><b>Changed</b> FLAC__stream_encoder_finish() now returns a FLAC__bool to signal a verify failure, or error processing last frame or updating metadata.</li>
<li><b>Changed</b> FLAC__StreamDecoderState: removed state FLAC__STREAM_DECODER_UNPARSEABLE_STREAM</li>
<li><b>Changed</b> FLAC__StreamDecoderErrorStatus: new error code FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM</li>
<li>The above two changes mean that when the decoder encounters what it thinks are unparseable frames from a future decoder, instead of returning a fatal error with the FLAC__STREAM_DECODER_UNPARSEABLE_STREAM state, it just calls the error callback with FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM and leaves the behavior up to the application.</li>
<li><b>Changed</b> FLAC::Metadata::Chain::read() to accept a flag denoting Ogg FLAC input</li>
<li><b>Changed</b> FLAC::Decoder::Stream::finish() now returns a bool to signal an MD5 failure like FLAC__stream_decoder_finish() does.</li>
<li><b>Changed</b> FLAC::Encoder::Stream::finish() now returns a bool to signal a verify failure, or error processing last frame or updating metadata.</li>
<li>Sped up decoding by a few percent overall.</li>
<li>Sped up encoding when not using LPC (i.e. when using <spanclass="commandname">flac</span> options <spanclass="argument">-0</span>, <spanclass="argument">-1</span>, <spanclass="argument">-2</span>, or <spanclass="argument">-l 0</span>).</li>
<li>Fixed a decoding bug that could cause sync errors with some ID3v1-tagged FLAC files.</li>
<li>Added <ahref="documentation_tools_metaflac.html#metaflac">HTML documentation for metaflac</a>.</li>
</ul>
</li>
<li>
FLAC format:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
Ogg FLAC format:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
flac:
<ul>
<li>New option <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_input_size">--input-size</a></span> to manually specify the input size when encoding raw samples from stdin.</li>
</ul>
</li>
<li>
metaflac:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
plugins:
<ul>
<li>Added support for HTTP streaming in XMMS plugin. <b>NOTE</b>: there is a <ahref="http://bugs.xmms.org/show_bug.cgi?id=2038">bug</a> in the XMMS mpg123 plugin that hijacks FLAC streams; to fix it you will need to add the '.flac' extension to the list of exceptions in <spanclass="code">Input/mpg123/mpg123.c:is_our_file()</span> in the XMMS sources and recompile.</li>
</ul>
</li>
<li>
build system:
<ul>
<li>(none)</li>
</ul>
</li>
<li>
libraries:
<ul>
<li>libFLAC: Sped up Rice block decoding in the bitbuffer, resulting in decoding speed gains of a few percent.</li>
<li>libFLAC: Sped up encoding when not using LPC (i.e. <spanclass="code">max_lpc_order == 0</span>).</li>
<li>libFLAC: Trailing NUL characters maintained on Vorbis comment entries so they can be treated like C strings.</li>
<li>libFLAC: More FLAC tag (i.e. Vorbis comment) validation.</li>
<li>libFLAC: Fixed a bug in the logic that determines the frame or sample number in a frame header; the bug could cause sync errors with some ID3v1-tagged FLAC files.</li>
<li>libFLAC, libOggFLAC: Can now be compiled to use only integer instructions, including encoding. The decoder is almost completely integer anyway but there were a couple places that needed a fixed-point replacement. There is no fixed-point version of LPC analysis yet, so if libFLAC is compiled integer-only, the encoder will behave as if the max LPC order is 0 (i.e. used fixed predictors only). LPC decoding is supported in all cases as it always was integer-only.</li>
</ul>
</li>
<li>
Interface changes:
<ul>
<li>
libFLAC:
<ul>
<li><b>Changed:</b> Metadata object interface now maintains a trailing NUL on Vorbis comment entries for convenience.</li>
<li><b>Changed:</b> Metadata object interface now validates all Vorbis comment entries on input and returns false if an entry does not conform to the Vorbis comment spec.</li>
<li><b>Changed</b> the signature of FLAC__metadata_object_vorbiscomment_entry_matches(): the first argument is now <spanclass="code">FLAC__StreamMetadata_VorbisComment_Entry entry</span> (was <spanclass="code">const FLAC__StreamMetadata_VorbisComment_Entry *entry</span>), i.e. <spanclass="code">entry</span> is now pass-by-value.</li>
</ul>
</li>
<li>
libFLAC++:
<ul>
<li><b>Changed:</b> Metadata object interface now maintains a trailing NUL on Vorbis comment values for convenience.</li>
<li><b>Changed:</b> Metadata object interface now validates all Vorbis comment entries on input and returns false if an entry does not conform to the Vorbis comment spec.</li>
<li><b>Changed:</b> All Metadata objects' operator=() methods now return a reference to themselves.</li>
<li><b>Added</b> methods to FLAC::Metadata::VorbisComment::Entry for setting comment values from null-terminated strings:
<li><b>Changed</b> the signature of FLAC::Metadata::VorbisComment::get_vendor_string() and FLAC::Metadata::VorbisComment::set_vendor_string() to use a UTF-8, NUL-terminated string <spanclass="code">const FLAC__byte *</span> for the vendor string instead of <spanclass="code">FLAC::Metadata::VorbisComment::Entry</span>.</li>
<li><b>Added</b> FLAC::Metadata::*::assign() to all Metadata objects.</li>
<li>New optimizations almost double the decoding speed on PowerPC (e.g. Mac G4/G5)</li>
<li>A native OS X release thanks to updated Project Builder and autotools files</li>
</ul>
</li>
<li>
FLAC format:
<ul>
<li>Made invalid the metadata block type 127 so that audio frames can always be distinguished from metadata by seeing 0xff as the first byte. (This was also required for the Ogg FLAC mapping.)</li>
</ul>
</li>
<li>
Ogg FLAC format:
<ul>
<li>First official FLAC->Ogg bitstream mapping standardized (see new <ahref="ogg_mapping.html">FLAC-to-Ogg mapping specification</a>). See the documentation for the <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_ogg">--ogg</a></span> switch about having to re-encode older Ogg FLAC files.</li>
</ul>
</li>
<li>
flac:
<ul>
<li>Print an error when output file already exists instead of automatically overwriting.</li>
<li>New option <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_force">-f</a></span> (<spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_force">--force</a></span>) to force overwriting if the output file already exists.</li>
<li>New option <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_cue">--cue</a></span> to select a specific section to decode using cuesheet track/index points.</li>
<li>New option <spanclass="argument"><ahref="documentation_tools_flac.html#flac_options_totally_silent">--totally-silent</a></span> to suppress all output.</li>
<li>New (but undocumented) option <spanclass="argument">--apply-replaygain-which-is-not-lossless</span> which applies ReplayGain to the decoded output. See <ahref="http://www.hydrogenaudio.org/forums/index.php?showtopic=17293&st=11">this thread</a> for usage and caveats.</li>
<li>When encoding to Ogg FLAC, use a random serial number (instead of 0 as was done before) when a serial number is not specified.</li>
<li>When encoding multiple Ogg FLAC streams, <spanclass="argument">--serial-number</span> or random serial number sets the first number, which is then incremented for subsequent streams (before, the same serial number was used for all streams).</li>
<li>Decoder no longer exits with an error when writing to stdout and the pipe is broken.</li>
<li>Better explanation of common error messages.</li>
<li>Default extension when writing AIFF files is .aif (before, it was .aiff).</li>
<li>Write more common representation of SANE numbers in AIFF files.</li>
<li>Bug fix: calculating ReplayGain on 48kHz streams.</li>
<li>Bug fix: check for supported block alignments in WAVE files.</li>
<li>Bug fix: "offset" field in AIFF SSND chunk properly handled.</li>
<li>Bug fix: <ahref="http://sourceforge.net/tracker2/?func=detail&aid=851155&group_id=13478&atid=113478">#851155</a>: Can't seek to position in flac file.</li>
<li>Bug fix: <ahref="http://sourceforge.net/tracker2/?func=detail&aid=877122&group_id=13478&atid=113478">#877122</a>: problem parsing cuesheet with CATALOG entry.</li>
<li>Bug fix: <ahref="http://sourceforge.net/tracker2/?func=detail&aid=896057&group_id=13478&atid=113478">#896057</a>: parsing ISRC number from cuesheet.</li>
</ul>
</li>
<li>
metaflac:
<ul>
<li>Renamed the tag editing options as follows (the <spanclass="argument">...-vc-...</span> options still work but are deprecated):
<li>Bug fix: small memory leak in XMMS plugin.</li>
</ul>
</li>
<li>
build system:
<ul>
<li><spanclass="code">ordinals.h</span> is now static, not a build-generated file anymore.</li>
</ul>
</li>
<li>
libraries:
<ul>
<li>libFLAC: PPC+Altivec optimizations of some decoder routines.</li>
<li>libFLAC: Make stream encoder encode the blocksize and sample rate in the frame header if at all possible (not in STREAMINFO), even if subset encoding was not requested.</li>
<li>libFLAC: Bug fix: fixed seek routine where infinite loop could happen when seeking past end of stream.</li>
<li>libFLAC, libFLAC++: added methods to skip single frames, useful for quickly finding frame boundaries (see interface changes below).</li>
<li>libOggFLAC, libOggFLAC++: New seekable-stream and file encoder and decoder APIs to match native FLAC APIs (see interface changes below).</li>
</ul>
</li>
<li>
Interface changes:
<ul>
<li>
libFLAC:
<ul>
<li><b>Added</b> FLAC__metadata_get_tags()</li>
<li><b>Added</b> callback-based versions of metadata editing functions: