[flac-dev] [PATCH] for flac/decode.c

Brian Willoughby brianw at audiobanshee.com
Sun Dec 14 16:26:27 PST 2014


On Dec 14, 2014, at 10:02 AM, lvqcl <lvqcl.mail at gmail.com> wrote:
> Currently the header of a decoded WAV file can be different to the
> original WAV file because FLAC doesn't preserve 'fmt ' chunk.
> 
> For example: create a 24-bit stereo .wav file with WAVEFORMATEXTENSIBLE
> header with channel mask == 3. Encode it to .flac then decode back to .wav.
> FLAC creates a 24-bit stereo .wav file with WAVEFORMATEX header.

Did you try this when using the FLAC command-line option --keep-foreign-metadata?

I did not write the code for that option, but I did write a proposal for a method that would have allowed the header to be preserved for either WAV or AIFF. I'm not sure what was implemented, though, and I have not tested whether abnormal WAV headers are preserved.

If --keep-foreign-metadata is not used, then nothing is preserved from the original WAV except the audio.

Brian Willoughby



More information about the flac-dev mailing list