aboutsummaryrefslogtreecommitdiffstats
path: root/libFDK/src
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2018-12-29 06:12:16 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-12-29 06:12:16 -0800
commit57939192c3378e57d4af8509a086f58e9721a7c1 (patch)
tree72e4f52ffcfc4e870e34be0e337c3a1bb5f21dba /libFDK/src
parentbb3249264438604d874fd33bd19f20abbae67647 (diff)
parentcf4098ed3ba7030b52c129db0dbb9d51b49384e6 (diff)
downloadfdk-aac-57939192c3378e57d4af8509a086f58e9721a7c1.tar.gz
fdk-aac-57939192c3378e57d4af8509a086f58e9721a7c1.tar.bz2
fdk-aac-57939192c3378e57d4af8509a086f58e9721a7c1.zip
Merge "QMF configuration flag QMF_FLAG_MPSLDFB has always priority over QMF_FLAG_CLDFB"
am: cf4098ed3b Change-Id: I0166285d3129440c9caa444fe4fcfa9d59c1f6c1
Diffstat (limited to 'libFDK/src')
-rw-r--r--libFDK/src/FDK_qmf_domain.cpp8
1 files changed, 4 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;
}