From aad97f4ec218d30d3a174c98f6502606b6267d0e Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Mon, 10 Jan 2022 14:00:56 +0200 Subject: [PATCH] Revert "Avoid failing asserts on broken bitstreams" This reverts commit 6a2eb8b30f4a65d3b9b0422bf14eaf7007149ffd. This issue that this commit fixed seems to have been fixed differently upstream, by 9ed084750d72346b1533119410be9329ae138dcc. --- libPCMutils/src/pcmdmx_lib.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libPCMutils/src/pcmdmx_lib.cpp b/libPCMutils/src/pcmdmx_lib.cpp index 377557a..fca12ce 100644 --- a/libPCMutils/src/pcmdmx_lib.cpp +++ b/libPCMutils/src/pcmdmx_lib.cpp @@ -611,8 +611,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]);