diff options
author | Fraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de> | 2018-12-20 15:52:46 +0100 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2018-12-28 19:53:08 -0500 |
commit | c371e86ef4d4a6a68e8139e00745faeb8c2c82ba (patch) | |
tree | 72e4f52ffcfc4e870e34be0e337c3a1bb5f21dba | |
parent | b07509996ab66111174aea2849f1a5589b75d052 (diff) | |
download | fdk-aac-c371e86ef4d4a6a68e8139e00745faeb8c2c82ba.tar.gz fdk-aac-c371e86ef4d4a6a68e8139e00745faeb8c2c82ba.tar.bz2 fdk-aac-c371e86ef4d4a6a68e8139e00745faeb8c2c82ba.zip |
QMF configuration flag QMF_FLAG_MPSLDFB has always priority over QMF_FLAG_CLDFB
Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc
Change-Id: I7c851b9db88c6250b5ad30282b8b19ea306e4e12
-rw-r--r-- | libFDK/src/FDK_qmf_domain.cpp | 8 | ||||
-rw-r--r-- | libSACdec/src/sac_dec_lib.cpp | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/libFDK/src/FDK_qmf_domain.cpp b/libFDK/src/FDK_qmf_domain.cpp index 409f222..dd63dab 100644 --- a/libFDK/src/FDK_qmf_domain.cpp +++ b/libFDK/src/FDK_qmf_domain.cpp @@ -889,10 +889,6 @@ QMF_DOMAIN_ERROR FDK_QmfDomain_Configure(HANDLE_FDK_QMF_DOMAIN hqd) { !(hgc->flags & (QMF_FLAG_CLDFB | QMF_FLAG_MPSLDFB))) { hgc->flags_requested |= QMF_FLAG_DOWNSAMPLED; } - if ((hgc->flags_requested & QMF_FLAG_MPSLDFB) && - (hgc->flags_requested & QMF_FLAG_CLDFB)) { - hgc->flags_requested &= ~QMF_FLAG_CLDFB; - } hasChanged = 1; } @@ -901,6 +897,10 @@ QMF_DOMAIN_ERROR FDK_QmfDomain_Configure(HANDLE_FDK_QMF_DOMAIN hqd) { /* 5. set requested flags */ if (hgc->flags != hgc->flags_requested) { + if ((hgc->flags_requested & QMF_FLAG_MPSLDFB) && + (hgc->flags_requested & QMF_FLAG_CLDFB)) { + hgc->flags_requested &= ~QMF_FLAG_CLDFB; + } hgc->flags = hgc->flags_requested; hasChanged = 1; } diff --git a/libSACdec/src/sac_dec_lib.cpp b/libSACdec/src/sac_dec_lib.cpp index e881599..7549e51 100644 --- a/libSACdec/src/sac_dec_lib.cpp +++ b/libSACdec/src/sac_dec_lib.cpp @@ -1087,6 +1087,7 @@ mpegSurroundDecoder_ConfigureQmfDomain( if (coreCodec == AOT_ER_AAC_ELD) { pGC->flags_requested |= QMF_FLAG_MPSLDFB; + pGC->flags_requested &= ~QMF_FLAG_CLDFB; } return err; |