mirror of https://github.com/libsdl-org/SDL.git
wave: Don't check if format->channels > INT_MAX, it's a Uint16.
This commit is contained in:
parent
1bfe97c235
commit
79cc29ba35
|
|
@ -1667,8 +1667,6 @@ static int WaveCheckFormat(WaveFile *file, size_t datalength)
|
|||
|
||||
if (format->channels == 0) {
|
||||
return SDL_SetError("Invalid number of channels");
|
||||
} else if (format->channels > INT_MAX) {
|
||||
return SDL_SetError("Number of channels exceeds limit of %d", INT_MAX);
|
||||
}
|
||||
|
||||
if (format->frequency == 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue