aboutsummaryrefslogtreecommitdiffstats
path: root/libPCMutils
diff options
context:
space:
mode:
Diffstat (limited to 'libPCMutils')
-rw-r--r--libPCMutils/src/pcmutils_lib.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/libPCMutils/src/pcmutils_lib.cpp b/libPCMutils/src/pcmutils_lib.cpp
index 3bb1cee..e6ac3ff 100644
--- a/libPCMutils/src/pcmutils_lib.cpp
+++ b/libPCMutils/src/pcmutils_lib.cpp
@@ -88,7 +88,7 @@ amm-info@iis.fraunhofer.de
expansion in the PCM time domain.
*******************************************************************************/
-
+#include <log/log.h>
#include "pcmutils_lib.h"
#include "genericStds.h"
@@ -2078,7 +2078,10 @@ PCMDMX_ERROR pcmDmx_ApplyFrame (
map[ch++] = inCh;
}
}
- FDK_ASSERT(ch == numInChannels);
+ if (ch != numInChannels) {
+ ALOGE("b/23876444");
+ return PCMDMX_INVALID_ARGUMENT;
+ }
/* Remove unused cols from factor matrix */
for (inCh=0; inCh < numInChannels; inCh+=1) {