mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-01-31 07:55:22 +01:00
ELD downscale factor 3 is only allowed for framesize 480.
Bug: 176246647 Test: atest DecoderTestXheAac DecoderTestAacDrc Change-Id: I9681942ba39761e4f1d66236ad80c2420ca5abe9
This commit is contained in:
parent
b1136d1c34
commit
9f2d1a18d4
@ -1791,9 +1791,17 @@ CAacDecoder_Init(HANDLE_AACDECODER self, const CSAudioSpecificConfig *asc,
|
||||
downscaleFactorInBS =
|
||||
asc->m_samplingFrequency /
|
||||
asc->m_sc.m_eldSpecificConfig.m_downscaledSamplingFrequency;
|
||||
if (downscaleFactorInBS == 1 || downscaleFactorInBS == 2 ||
|
||||
downscaleFactorInBS == 3 || downscaleFactorInBS == 4) {
|
||||
if ((downscaleFactorInBS == 1 || downscaleFactorInBS == 2 ||
|
||||
(downscaleFactorInBS == 3 &&
|
||||
asc->m_sc.m_eldSpecificConfig.m_frameLengthFlag) ||
|
||||
downscaleFactorInBS == 4) &&
|
||||
((asc->m_samplingFrequency %
|
||||
asc->m_sc.m_eldSpecificConfig.m_downscaledSamplingFrequency) ==
|
||||
0)) {
|
||||
downscaleFactor = downscaleFactorInBS;
|
||||
} else {
|
||||
downscaleFactorInBS = 1;
|
||||
downscaleFactor = 1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user