[Flac-dev] Re: FLAC on Pocket PC

Jehan nahor at bravobrava.com
Thu May 29 10:45:20 PDT 2003


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






More information about the Flac-dev mailing list