#77 flac doesn't respect RIFF subchunk padding byte

closed-fixed
Josh Coalson
5
2004-10-01
2003-02-02
James Heinrich
No

If a WAV file has extra info chunks (IART, ICMT, etc) the
FLAC encoder (FLAC v1.1.0 Windows - also tested with
1.0.4, same result) spits out error messages, although it
seems to still encode the file ok.

This is the output:
--------------------------------------------
X:\>flac RIFF-info.wav

flac 1.1.0, Copyright (C) 2000,2001,2002,2003 Josh
Coalson
flac comes with ABSOLUTELY NO WARRANTY. This
is free software, and you are
welcome to redistribute it under certain conditions.
Type `flac' for details.

options: -P 4096 -b 4608 -m -l 8 -q 0 -r 3,3
RIFF-info.wav: 68% complete, ratio=0.540RIFF-info.wav:
WARNING: skipping unknown
sub-chunk 'LIST'
RIFF-info.wav: WARNING: skipping unknown sub-
chunk 'DISP'
RIFF-info.wav: WARNING: skipping unknown sub-
chunk 'DISP'
RIFF-info.wav: ERROR: unexpected EOF
--------------------------------------------

This is the 10-second (44-16-1) test file:
http://www.silisoftware.com/RIFF-info.wav

Same file, no extra chunks, compresses fine:
http://www.silisoftware.com/RIFF-noinfo.wav

Discussion

<< < 1 2 (Page 2 of 2)
  • Logged In: YES
    user_id=450189

    I think that RIFF was originally a copy of the AIFF spec with the
    byte-order flipped and the header format changed. The fact that
    both are padded to 16-bit boundaries in the same way is not too
    surprising.

     
  • Logged In: YES
    user_id=450189

    I think that RIFF was originally a copy of the AIFF spec with the
    byte-order flipped and the header format changed. The fact that
    both are padded to 16-bit boundaries in the same way is not too
    surprising.

     
  • Josh Coalson
    Josh Coalson
    2004-10-01

    • status: open-fixed --> closed-fixed
     
<< < 1 2 (Page 2 of 2)