1
FLAC / Re: FLAC - stored main chunk length differs from written length
Last post by bryant -I have fixed this in WavPack with this commit by rejecting such WAV files.On to the wrong.wavAdd refalac to the list, and thanks Bryant for the attention.
...
As far as I can tell,
flac, TAK and OptimFROG reject it
...
While I was fixing this I looked at other formats and see that CAF also has this redundancy and, unlike WAV, the format documentation clearly states that having unpacked samples is valid and gives a detailed example of the 24-bit sample in 32-bit container case (values are shifted "up" for both BE and LE).
I created a few sample files like this and found that WavPack handled them fine, except for not verifying that the proper bytes were zeroed. I tried other programs and FFmpeg and Audacity (via libsndfile) both fail on these files. The only other program that handled them correctly was (no surprise) @nu774 's Foobar2000 CAF component. Good job!
If anyone is interested, I can attach them to the thread.