comparison decoders/smpeg.c @ 351:069ce624d6cf

FIXME cleanup.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 06 Jun 2002 19:12:13 +0000
parents 1b33baef9bf9
children f11c10ffa31a
comparison
equal deleted inserted replaced
350:cafdbcae733d 351:069ce624d6cf
149 BAIL_MACRO("MP3: Could not read MP3 magic.", 0); 149 BAIL_MACRO("MP3: Could not read MP3 magic.", 0);
150 150
151 if (mp3_magic[0] != 0xFF || (mp3_magic[1] & 0xF0) != 0xF0) 151 if (mp3_magic[0] != 0xFF || (mp3_magic[1] & 0xF0) != 0xF0)
152 BAIL_MACRO("MP3: Not an MP3 stream.", 0); 152 BAIL_MACRO("MP3: Not an MP3 stream.", 0);
153 153
154 /* !!! FIXME: If the seek fails, we'll probably miss a frame */ 154 /* If the seek fails, we'll probably miss a frame, but oh well */
155 SDL_RWseek(internal->rw, -sizeof (mp3_magic), SEEK_CUR); 155 SDL_RWseek(internal->rw, -sizeof (mp3_magic), SEEK_CUR);
156 } /* if */ 156 } /* if */
157 157
158 refCounter = RWops_RWRefCounter_new(internal->rw); 158 refCounter = RWops_RWRefCounter_new(internal->rw);
159 if (refCounter == NULL) 159 if (refCounter == NULL)