mpglib decoding issue:

Ryan C. Gordon icculus at clutteredmind.org
Sat Mar 2 22:33:26 EST 2002


If you've played back an MP3 with mpglib and, after a flawless playback,
gotten this message at the end:

Sorry, unknown layer type.
Sorry, unknown layer type.

(but no error is reported by SDL_sound itself...)

mpglib is throwing up on the ID3 tag at the end of the input. Try
removing the ID3 tag with XMMS, and the error goes away.

This is probably best handled in mpglib.c before passing the data on to
the decoder, since that code is in a better position to know if the EOF
has been hit and discard the last 128 bytes.

--ryan.






More information about the sdlsound mailing list