mirror of
https://gitlab.com/ecodis/exhale.git
synced 2025-02-03 08:57:35 +01:00
fix HF TNS bug
This commit is contained in:
parent
1582d8909e
commit
449c37e9ea
@ -433,7 +433,7 @@ unsigned ExhaleEncoder::applyTnsToWinGroup (TnsData& tnsData, SfbGroupData& grpD
|
|||||||
|
|
||||||
while (grpSO[tnsStartSfb] < tnsStartOffs) tnsStartSfb++; // start band for TNS filter
|
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)
|
if ((tnsData.filterLength[0] = __max (0, numSwbWin - tnsStartSfb)) > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user