Skip to content

Commit

Permalink
[src] Fix potential underflow bug in MFCC, RE energy floor, thx: Zolt…
Browse files Browse the repository at this point in the history
…an Tobler (#3347)
  • Loading branch information
huangruizhe authored and danpovey committed May 28, 2019
1 parent a5dd6bd commit 8c6cd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/feat/feature-mfcc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void MfccComputer::Compute(BaseFloat signal_log_energy,

if (opts_.use_energy && !opts_.raw_energy)
signal_log_energy = Log(std::max<BaseFloat>(VecVec(*signal_frame, *signal_frame),
std::numeric_limits<float>::min()));
std::numeric_limits<float>::epsilon()));

if (srfft_ != NULL) // Compute FFT using the split-radix algorithm.
srfft_->Compute(signal_frame->Data(), true);
Expand Down

0 comments on commit 8c6cd31

Please sign in to comment.