diff --git a/speechx/speechx/frontend/normalizer.cc b/speechx/speechx/frontend/normalizer.cc index 1adddb401b84ec7967c94c22101dba5fb1848539..524125619a74f8e12b7d9932b7529a4ab3bfde0f 100644 --- a/speechx/speechx/frontend/normalizer.cc +++ b/speechx/speechx/frontend/normalizer.cc @@ -107,7 +107,7 @@ void CMVN::Accept(const kaldi::VectorBase& inputs) { } bool CMVN::Read(kaldi::Vector* feats) { - if (base_extractor_->Read(feats) == false) { + if (base_extractor_->Read(feats) == false || feats->Dim() == 0) { return false; } Compute(feats);