Skip to content

Commit e2a67e7

Browse files
entn-atdanpovey
authored andcommitted
[src] Fix bug in previous bugfix PR #3639 in resampling checks for online features (#3792)
1 parent 83c9865 commit e2a67e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/feat/online-feature.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ void OnlineGenericBaseFeature<C>::MaybeCreateResampler(
8888
if (resampler_ != nullptr) {
8989
KALDI_ASSERT(resampler_->GetInputSamplingRate() == sampling_rate);
9090
KALDI_ASSERT(resampler_->GetOutputSamplingRate() == expected_sampling_rate);
91-
} else if (((sampling_rate < expected_sampling_rate) &&
91+
} else if (((sampling_rate > expected_sampling_rate) &&
9292
computer_.GetFrameOptions().allow_downsample) ||
93-
((sampling_rate > expected_sampling_rate) &&
93+
((sampling_rate < expected_sampling_rate) &&
9494
computer_.GetFrameOptions().allow_upsample)) {
9595
resampler_.reset(new LinearResample(
9696
sampling_rate, expected_sampling_rate,

0 commit comments

Comments
 (0)