src/audio/SDL_wave.c
changeset 8998 995f6cd966a7
parent 8980 66824b0e330a
child 9619 b94b6d0bff0f
equal deleted inserted replaced
8997:9e23a50a63f7 8998:995f6cd966a7
   458             was_error = 1;
   458             was_error = 1;
   459             goto done;
   459             goto done;
   460         }
   460         }
   461         /* 2 Uint32's for chunk header+len, plus the lenread */
   461         /* 2 Uint32's for chunk header+len, plus the lenread */
   462         headerDiff += lenread + 2 * sizeof(Uint32);
   462         headerDiff += lenread + 2 * sizeof(Uint32);
   463     } while ((chunk.magic == FACT) || (chunk.magic == LIST) || (chunk.magic == BEXT));
   463     } while ((chunk.magic == FACT) || (chunk.magic == LIST) || (chunk.magic == BEXT) || (chunk.magic == JUNK));
   464 
   464 
   465     /* Decode the audio data format */
   465     /* Decode the audio data format */
   466     format = (WaveFMT *) chunk.data;
   466     format = (WaveFMT *) chunk.data;
   467     if (chunk.magic != FMT) {
   467     if (chunk.magic != FMT) {
   468         SDL_SetError("Complex WAVE files not supported");
   468         SDL_SetError("Complex WAVE files not supported");