[Scummvm-devel] VorbisInputStream ctr & check catch
Johannes Schickel
lordhoto at gmail.com
Wed Feb 3 10:47:26 CET 2010
On Wed, Feb 3, 2010 at 10:31 AM, Max Horn <max at quendi.de> wrote:
> One could check the value of _stream->error:
>
> if (_stream->error && !MAD_RECOVERABLE(_stream->error))
> decoding failed
>
I just checked the MP3 code again, it seems like _state is set to
MP3_STATE_EOS on failure on decodeMP3Data and readHeader, thus it
should be safe to use endOfData there too. Just committed that :-).
// Johannes
More information about the Scummvm-devel
mailing list