Erik de Castro Lopo wrote:
New program called sndfile-salvage here:
http://www.mega-nerd.com/tmp/sndfile-salvage.c
It works great for fixing my file. Faster than doing it manual too :-)
Something weird though, doing a diff between the file from
sndfile-salvage and the one I fixed using sox says that they both
differ.
The file size is identical, and the first 10MBs of the file is exactly
the same. But when I diff the hexdump from around the middle of the
file
I noticed something. There are blocks of 0001 80bf on the file fixed
using sndfile-salvage while the one I fixed using sox has blocks of
0000 80bf.
Since it's little endian it would be read (i think) 0xbf800000 and
0xbf800001, the difference on the mantissa is only 1, so I guess
there wouldn't be any difference soundwise. Just curious though how
come the two file differ that way.
Anyway, thank you very much for your help and for spending time to
make this utility.
Regards,
Shani H Pribadi