[Flac-dev] decoder lost after processing
Albert Chang
albert.chang at gmx.com
Thu Sep 15 07:45:18 PDT 2011
Hi,
I'm writing a simple flac playing program, and I've basically modified
the example C decoder code to use libao. The example code works just
fine, but when I use libao, after calling
FLAC__stream_decoder_process_until_end_of_stream(), decoder points to an
inaccessible area of memory (0x2). This invariable causes a segmentation
fault when anything else thereafter uses the decoder (i.e.
FLAC__stream_decoder_get_state() and FLAC__stream_decoder_delete()).
What could be causing the problem?
My code can be accessed here <http://sprunge.us/IUha>
Best regards,
Albert Chang
More information about the Flac-dev
mailing list