src/audio/SDL_wave.c
branchgsoc2008_nds
changeset 2669 e27bdcc80744
parent 2012 575d5c9d4db8
child 2859 99210400e8b9
     1.1 --- a/src/audio/SDL_wave.c	Wed Apr 23 06:27:10 2008 +0000
     1.2 +++ b/src/audio/SDL_wave.c	Tue Jun 10 06:45:39 2008 +0000
     1.3 @@ -462,8 +462,7 @@
     1.4          }
     1.5          /* 2 Uint32's for chunk header+len, plus the lenread */
     1.6          headerDiff += lenread + 2 * sizeof(Uint32);
     1.7 -    }
     1.8 -    while ((chunk.magic == FACT) || (chunk.magic == LIST));
     1.9 +    } while ((chunk.magic == FACT) || (chunk.magic == LIST));
    1.10  
    1.11      /* Decode the audio data format */
    1.12      format = (WaveFMT *) chunk.data;
    1.13 @@ -564,8 +563,7 @@
    1.14          *audio_buf = chunk.data;
    1.15          if (chunk.magic != DATA)
    1.16              headerDiff += lenread + 2 * sizeof(Uint32);
    1.17 -    }
    1.18 -    while (chunk.magic != DATA);
    1.19 +    } while (chunk.magic != DATA);
    1.20      headerDiff += 2 * sizeof(Uint32);   /* for the data chunk and len */
    1.21  
    1.22      if (MS_ADPCM_encoded) {