Miroslav Lichvar wrote:
flactest.cpp:
...
short in[BUFFER_SIZE];
FLAC__int32 input[BUFFER_SIZE];
...
if (fread(in, sizeof(short), BUFFER_SIZE, fin) != BUFFER_SIZE) {
...
input[i]=in[i];
"in" contains 16bit values instead of 8bit, you have to change "in" to
unsigned char, or cast it to unsigned char and change the loop.
Duh! Copy/Paste error strikes again!
That was it. I changed the code and I don't get the error anymore.
Thanks,
Jehan
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Flac-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/flac-dev