[Flac-dev] FLAC__stream_decoder_process_single and FLAC__STREAM_DECODER_END_OF_STREAM

Brian Willoughby brianw at sounds.wa.com
Wed Jul 25 07:52:22 PDT 2007

I haven't studied this thoroughly, but perhaps the return code is  
supposed to distinguish bad streams from good streams.  Every stream  
must end eventually, but that does not mean there is an error with  
the stream.  You're wanting a return code that tells you whether to  
continue processing blocks or stop, regardless of whether or not  
there was an error ... the API is providing a return code that tells  
you whether the stream is good or bad, with no indication of whether  
or not the stream has ended.

Brian Willoughby
Sound Consulting

On Jul 25, 2007, at 01:42, Erik de Castro Lopo wrote:
However, I still don't understand why  
returns false when an error has occurred, but true when the read  
returns FLAC__STREAM_DECODER_END_OF_STREAM? Why isn't end of stream  
like any other error?


More information about the Flac-dev mailing list