From a0411159e8d9b2357fa9c9cc49638e4f37890e03 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Tue, 17 Nov 2020 12:55:02 +0200 Subject: [PATCH] Revert "Avoid a failed assert on invalid channel indices" This reverts commit 9b0f848911068943bbadeb37c0b8857605e74093. This local fix doesn't seem to be needed any more after the latest upstream update. --- libPCMutils/src/pcmdmx_lib.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/libPCMutils/src/pcmdmx_lib.cpp b/libPCMutils/src/pcmdmx_lib.cpp index e3c3fa9..2070dbc 100644 --- a/libPCMutils/src/pcmdmx_lib.cpp +++ b/libPCMutils/src/pcmdmx_lib.cpp @@ -583,9 +583,6 @@ static PCMDMX_ERROR getChannelMode( (channelType[ch] & 0x0F) - 1, 0); /* Assign all undefined channels (ACT_NONE) to front channels. */ - if (channelIndices[ch] >= numCh[channelType[ch] >> 4][chGrp]) - return PCMDMX_INVALID_CH_CONFIG; - spkrPos[ch] = getSpeakerPos(channelType[ch], channelIndices[ch], numCh[channelType[ch] >> 4][chGrp]);