comparison decoders/mpglib.c @ 263:cde06af563f7

Fix for EOF.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 21 Feb 2002 19:55:23 +0000
parents 9b6e82f7c853
children 9b89bb587f8f
comparison
equal deleted inserted replaced
262:6fe6de401b63 263:cde06af563f7
221 { 221 {
222 sample->flags |= SOUND_SAMPLEFLAG_EOF; 222 sample->flags |= SOUND_SAMPLEFLAG_EOF;
223 return(bw); 223 return(bw);
224 } /* else if */ 224 } /* else if */
225 225
226 rc = decodeMP3(&mpg->mp, mpg->inbuf, sizeof (mpg->inbuf), 226 rc = decodeMP3(&mpg->mp, mpg->inbuf, rc,
227 mpg->outbuf, sizeof (mpg->outbuf), &mpg->outleft); 227 mpg->outbuf, sizeof (mpg->outbuf), &mpg->outleft);
228 if (rc == MP3_ERR) 228 if (rc == MP3_ERR)
229 { 229 {
230 sample->flags |= SOUND_SAMPLEFLAG_ERROR; 230 sample->flags |= SOUND_SAMPLEFLAG_ERROR;
231 return(bw); 231 return(bw);