1
0
mirror of https://github.com/mstorsjo/fdk-aac.git synced 2025-03-12 13:50:03 +01:00

Fix an assertion failure when encoding a particular input at specific bitrates

This commit is contained in:
Martin Storsjo 2017-12-20 10:21:34 +02:00
parent 56c717e223
commit 1b0cec288c

View File

@ -533,6 +533,7 @@ static void FDKaacEnc_assimilateSingleScf(PSY_OUT_CHANNEL *psyOutChan,
(scfAct > scfMin) &&
(scfAct <= scfMin+MAX_SCF_DELTA) &&
(scfAct >= scfMax-MAX_SCF_DELTA) &&
(scfAct <= fixMin(scfMin,fixMin(*scfLast, *scfNext))+MAX_SCF_DELTA) &&
(*scfLast != prevScfLast[sfbAct] ||
*scfNext != prevScfNext[sfbAct] ||
deltaPe < deltaPeLast[sfbAct])) {