diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2019-02-01 15:34:03 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-02-01 15:34:03 +0000 |
commit | b30e02cfd33956c57dea76417be4be0862e642dd (patch) | |
tree | abf3b631396659c6565f0bc225940963bc2bb76b /libSACdec/src/sac_dec_lib.cpp | |
parent | ed56e77acb1ca4524bf49d9cdec7d11a51f5134d (diff) | |
parent | c47066df27e6ba6eb3f9d00e663796b54e9f64e7 (diff) | |
download | fdk-aac-b30e02cfd33956c57dea76417be4be0862e642dd.tar.gz fdk-aac-b30e02cfd33956c57dea76417be4be0862e642dd.tar.bz2 fdk-aac-b30e02cfd33956c57dea76417be4be0862e642dd.zip |
Merge "Add QMF analysis band sanity check"
Diffstat (limited to 'libSACdec/src/sac_dec_lib.cpp')
-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 * |