diff --git a/src/audio/SDL_wave.c b/src/audio/SDL_wave.c index 035901667..0eec7bf43 100644 --- a/src/audio/SDL_wave.c +++ b/src/audio/SDL_wave.c @@ -1334,7 +1334,8 @@ PCM_Init(WaveFile *file, size_t datalength) /* It wouldn't be that hard to support more exotic block sizes, but * the most common formats should do for now. */ - if (format->blockalign * 8 != format->channels * format->bitspersample) { + /* Make sure we're a multiple of the blockalign, at least. */ + if ((format->channels * format->bitspersample) % (format->blockalign * 8)) { return SDL_SetError("Unsupported block alignment"); }