mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-28 05:58:29 +00:00
wave: Don't check if format->channels > INT_MAX, it's a Uint16.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user