fix HF TNS bug

This commit is contained in:
Christian R. Helmrich 2020-04-13 01:00:16 +02:00
parent 1582d8909e
commit 449c37e9ea

View File

@ -433,7 +433,7 @@ unsigned ExhaleEncoder::applyTnsToWinGroup (TnsData& tnsData, SfbGroupData& grpD
while (grpSO[tnsStartSfb] < tnsStartOffs) tnsStartSfb++; // start band for TNS filter
}
tnsMaxBands = __min (tnsMaxBands, maxSfb);
if ((tnsMaxBands = __min (tnsMaxBands, maxSfb)) <= tnsStartSfb) tnsStartSfb = numSwbWin;
if ((tnsData.filterLength[0] = __max (0, numSwbWin - tnsStartSfb)) > 0)
{