[Flac] problem with 24 bit odd size file (even in new version)

Josh Coalson xflac at yahoo.com
Wed Mar 7 20:36:13 PST 2007


nothing should crash like that.  if you can give some specifics
about it I can take a look.

but the wave file seems invalid.  sample data is supposed to be
padded to an even number of bytes.

Josh

--- Dat Head <dathead2 at gmail.com> wrote:

> i had the problem is flac 1.1.2 so upgraded to 1.1.4 but now the
> problem is just
> different.  the wav file is from audacity, so i guess it is culprit
> for setting that
> format type 1 bit, but shouldn't this still work?
> 
> i found in 1.1.2 (before i found 1.1.3 had the odd size fix judging
> by
> relnotes) that i could add a dummy byte to the end and this seems to
> fix my issue, just not cleanly.
> 
> here is what i'm seeing with 1.1.4 under cygwin:
> 
> /cygdrive/c/WINDOWS/system32/flac.exe a.wav
> 
> flac 1.1.4, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 
> Josh Coalson
> 
> a.wav: WARNING: legacy WAVE file has format type 1 but
> bits-per-sample=24
> a.wav: 94% complete, ratio=0.499a.wav: ERROR during read of data pad
> byte
> 
> -------------------------------
> 
> /cygdrive/c/WINDOWS/system32/flac.exe -d a.flac
> 
> flac 1.1.4, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 
> Josh Coalson
> 
> a.flac: WARNING, cannot check MD5 signature since it was unset in the
> STREAMINFO
> a.flac: done
> 
> -------------------------------
> 
> /cygdrive/c/WINDOWS/system32/flac.exe -t a.flac
> 
> flac 1.1.4, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 
> Josh Coalson
> 
> a.flac: WARNING, cannot check MD5 signature since it was unset in the
> STREAMINFO
> a.flac: ok
> 
> -------------------------------
> 
> sfinfo a.wav
> 
> File Name      a.wav
> File Format    Microsoft RIFF WAVE Format (wave)
> Data Format    24-bit integer (2's complement, little endian)
> Audio Data     5839359 bytes begins at offset 44 (2c hex)
>                1 channel, 1946453 frames
> Sampling Rate  48000.00 Hz
> Duration       40.551 seconds
> 
> -------------------------------
> ls -l a.wav*
> -rw-r--r-- 1 rootboy None 5836845 Feb 27 22:17 a.wav
> -rw-r--r-- 1 rootboy None 5839403 Feb 25 20:38 a.wav.orig
> 
> and here is stackdump i get (not sure at which point above):
> 
> Exception: STATUS_ACCESS_VIOLATION at eip=610F5B93
> eax=00000000 ebx=00000064 ecx=00000000 edx=0022C680 esi=00000001
> edi=0022D008
> ebp=0022C658 esp=0022C620 program=C:\cygwin\bin\flac.exe, pid 3688,
> thread main
> cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
> Stack trace:
> Frame     Function  Args
> 0022C658  610F5B93  (0022D008, 00000000, 0022C680, 0000003A)
> 0022C6A8  610ED8D3  (0022D008, 0041C9B4, 00000001, 00000001)
> 0022C6C8  610ED94F  (0041C9B4, 00000001, 00000001, 00000000)
> 0022C7E0  61092B48  (00000001, 00000000, 00000000, 00000001)
> End of stack trace



 
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/


More information about the Flac mailing list