QUOTE (stagnant7 @ Mar 18 2006, 12:57 AM)
Hi,
As my final year thesis I am implementing a simple mp3 decoder on FPGA (field programmable gate array).
As preliminary study I am testing numerous codecs, simply to learn about the mp3 format in general.
Today i compiled the shine mp3 codec (using msvc++ 6.0) and i got the exe file (albeit with 51 warnings) however when i try to use it (i can access all the usage instructions using "shine -help") the marvellous windows critical error sending report box thingo comes up...and i am left with a 0byte mp3 outfile.
Can anyone give me some info that may help me out with this...?
Thanks.

First, add #include<string.h> at the beginning of files l3loop.c and wave.c.
Next, in FormatBitstream.c, from line 143, replace the function writePartSideInfo with the following:
CODE
static int
//writePartSideInfo( BF_BitstreamPart *part )
writePartSideInfo( BF_BitstreamPart *part, BF_FrameResults *results )
{
BF_BitstreamElement *ep;
int i, bits;
assert( results );
assert( part );
bits = 0;
ep = part->element;
for ( i = 0; i < part->nrEntries; i++, ep++ )
{
(*PutBits)( ep->value, ep->length );
bits += ep->length;
}
return bits;
}
This should leave a single compile warning that can be ignored. If you compile the 'debug' version, it will still crash. However, the 'release' version appears to run here. I am also using VC6 for this.