From 34c826ba06c300a99dc2f291e1fa08a85d0cc859 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 23 Jun 2020 21:43:37 +1000 Subject: [PATCH] Remove some premature validation checks. --- miniaudio.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index ccc4330b..a8025b3d 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -43345,8 +43345,7 @@ static ma_result ma_decoder__postinit(const ma_decoder_config* pConfig, ma_decod ma_result result = MA_SUCCESS; /* Basic validation in case the internal decoder supports different limits to miniaudio. */ - if (pDecoder->internalChannels < MA_MIN_CHANNELS || pDecoder->outputChannels < MA_MIN_CHANNELS || - pDecoder->internalChannels > MA_MAX_CHANNELS || pDecoder->outputChannels > MA_MAX_CHANNELS) { + if (pDecoder->internalChannels < MA_MIN_CHANNELS || pDecoder->internalChannels > MA_MAX_CHANNELS) { result = MA_INVALID_DATA; }