mirror of https://github.com/mstorsjo/fdk-aac.git
am b3c5a4bb: Fix crash on invalid channel config
* commit 'b3c5a4bb8442ab3158fa1f52b790fadc64546f46': Fix crash on invalid channel config
This commit is contained in:
commit
9f42dfb799
|
@ -88,7 +88,7 @@ amm-info@iis.fraunhofer.de
|
||||||
expansion in the PCM time domain.
|
expansion in the PCM time domain.
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
#include <log/log.h>
|
||||||
#include "pcmutils_lib.h"
|
#include "pcmutils_lib.h"
|
||||||
|
|
||||||
#include "genericStds.h"
|
#include "genericStds.h"
|
||||||
|
@ -2073,7 +2073,10 @@ PCMDMX_ERROR pcmDmx_ApplyFrame (
|
||||||
map[ch++] = inCh;
|
map[ch++] = inCh;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FDK_ASSERT(ch == numInChannels);
|
if (ch != numInChannels) {
|
||||||
|
ALOGE("b/23876444");
|
||||||
|
return PCMDMX_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
/* Remove unused cols from factor matrix */
|
/* Remove unused cols from factor matrix */
|
||||||
for (inCh=0; inCh < numInChannels; inCh+=1) {
|
for (inCh=0; inCh < numInChannels; inCh+=1) {
|
||||||
|
|
Loading…
Reference in New Issue