diff --git a/Quake/snd_mp3.c b/Quake/snd_mp3.c index b091c10a..6d5a354f 100644 --- a/Quake/snd_mp3.c +++ b/Quake/snd_mp3.c @@ -100,9 +100,6 @@ static int mp3_startread(snd_stream_t *stream) mp3_priv_t *p = (mp3_priv_t *) stream->priv; size_t ReadSize; - if (mp3_skiptags(stream) < 0) - return -1; - mad_stream_init(&p->Stream); mad_frame_init(&p->Frame); mad_synth_init(&p->Synth); @@ -392,6 +389,12 @@ static qboolean S_MP3_CodecOpenStream (snd_stream_t *stream) { int err; + if (mp3_skiptags(stream) < 0) + { + Con_Printf("Corrupt mp3 file (bad tags.)\n"); + return false; + } + stream->priv = calloc(1, sizeof(mp3_priv_t)); if (!stream->priv) {