wave: Don't check if format->channels > INT_MAX, it's a Uint16.

This commit is contained in:
Ryan C. Gordon committed 2023-07-30 11:56:09 -04:00
1 parent 1bfe97c235
commit 79cc29ba35
1 file changed
-2
-2
View File
@@ -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) {