diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2019-02-01 07:54:00 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-02-01 07:54:00 -0800 |
commit | 169e4207a33898a3a952984f1776c936e44bc552 (patch) | |
tree | 0af9e27b6c87a10f8dfabcdfa6de463cc84c921b /libSACdec | |
parent | 6a39cdb6eef730d848a9f0a15d7506bc9c00ef78 (diff) | |
parent | 6ff2d3cf8efdc5c436d6a20d065063d50fd4ec09 (diff) | |
download | fdk-aac-169e4207a33898a3a952984f1776c936e44bc552.tar.gz fdk-aac-169e4207a33898a3a952984f1776c936e44bc552.tar.bz2 fdk-aac-169e4207a33898a3a952984f1776c936e44bc552.zip |
Merge "Add QMF analysis band sanity check" am: b30e02cfd3 am: db4a1deb28
am: 6ff2d3cf8e
Change-Id: I12bc58a0ed01daba0295a4a8feab853b6cc3f0f0
Diffstat (limited to 'libSACdec')
-rw-r--r-- | libSACdec/src/sac_dec_lib.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libSACdec/src/sac_dec_lib.cpp b/libSACdec/src/sac_dec_lib.cpp index 5792858..bf6dedf 100644 --- a/libSACdec/src/sac_dec_lib.cpp +++ b/libSACdec/src/sac_dec_lib.cpp @@ -1658,6 +1658,10 @@ int mpegSurroundDecoder_Apply(CMpegSurroundDecoder *pMpegSurroundDecoder, initControlFlags = controlFlags; /* Check that provided output buffer is large enough. */ + if (pMpegSurroundDecoder->pQmfDomain->globalConf.nBandsAnalysis == 0) { + err = MPS_UNSUPPORTED_FORMAT; + goto bail; + } timeDataRequiredSize = (timeDataFrameSize * pMpegSurroundDecoder->pSpatialDec->numOutputChannelsAT * |