aboutsummaryrefslogtreecommitdiffstats
path: root/libPCMutils/src
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2015-09-08 08:48:41 -0700
committerMarco Nelissen <marcone@google.com>2015-09-08 15:50:08 +0000
commitb3c5a4bb8442ab3158fa1f52b790fadc64546f46 (patch)
treedd29760980bc0637ce09b4c2a3f657125b793c8b /libPCMutils/src
parent6792cf6361ff339e336287affb0bfe54bf6957a9 (diff)
downloadfdk-aac-b3c5a4bb8442ab3158fa1f52b790fadc64546f46.tar.gz
fdk-aac-b3c5a4bb8442ab3158fa1f52b790fadc64546f46.tar.bz2
fdk-aac-b3c5a4bb8442ab3158fa1f52b790fadc64546f46.zip
Fix crash on invalid channel config
Bug: 23876444 Change-Id: I90ad197811ebabceb5b5d74d6d3f20716fbe2d45
Diffstat (limited to 'libPCMutils/src')
-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 32d8437..cd22171 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"
@@ -2073,7 +2073,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) {