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

This commit is contained in:
Ryan C. Gordon
2023-07-05 11:50:22 -04:00
parent 1bfe97c235
commit 79cc29ba35

View File

@@ -1667,8 +1667,6 @@ static int WaveCheckFormat(WaveFile *file, size_t datalength)
if (format->channels == 0) { if (format->channels == 0) {
return SDL_SetError("Invalid number of channels"); 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) { if (format->frequency == 0) {