From 1b0cec288c5a0867ee0c008cd5a846facb72a524 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Wed, 20 Dec 2017 10:21:34 +0200 Subject: Fix an assertion failure when encoding a particular input at specific bitrates --- libAACenc/src/sf_estim.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libAACenc/src/sf_estim.cpp b/libAACenc/src/sf_estim.cpp index 1cb243b..75b8d42 100644 --- a/libAACenc/src/sf_estim.cpp +++ b/libAACenc/src/sf_estim.cpp @@ -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])) { -- cgit v1.2.3