mirror of https://github.com/mstorsjo/fdk-aac.git
QMF configuration flag QMF_FLAG_MPSLDFB has always priority over QMF_FLAG_CLDFB
Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I7c851b9db88c6250b5ad30282b8b19ea306e4e12
This commit is contained in:
parent
b07509996a
commit
c371e86ef4
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue