[Flac-dev] amd64 issue with flac-1.1.3 beta2

Miroslav Lichvar lichvarm at phoenix.inf.upol.cz
Sun Nov 5 01:31:02 PST 2006

On Sun, Nov 05, 2006 at 11:17:03AM +1100, David Collett wrote:
> I think I have tracked it down to "FLAC__bitbuffer_get_buffer" in
> bitbuffer.c taking an unsigned * for bytes, but "write_bitbuffer_" in
> stream_encoder.c is passing a size_t *. On my system it looks like unsigned
> is 4 bytes, where size_t is 8 bytes.
> Changing FLAC__bitbuffer_get_buffer to take a size_t * seems to fix it.
> But as I said, I only have 1 days amd64 experience, so I don't really
> know what I am doing! I also havent checked if anyone else is calling
> get_buffer with an unsigned * so maby this will break elseware now.
> Has anyone else tested on amd64?

Yes, I can confirm it. There is also one missed replacement in
FLAC__BitbufferReadCallback declaration.

Miroslav Lichvar

More information about the Flac-dev mailing list