mirror of
https://github.com/xiph/opus.git
synced 2025-05-27 21:59:12 +00:00
Avoiding an infinite loop
Thanks to changeforan on Github
This commit is contained in:
parent
7d9affc385
commit
06b9bfa8f4
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
last_silent = silent;
|
||||
}
|
||||
if (count==5000000 && one_pass_completed) break;
|
||||
if (count>=5000000 && one_pass_completed) break;
|
||||
if (training && ++gain_change_count > 2821) {
|
||||
speech_gain = pow(10., (-20+(rand()%40))/20.);
|
||||
if (rand()%20==0) speech_gain *= .01;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue