Browse Source

return null for 2pass other wav_format

雾聪 2 years ago
parent
commit
3a32a6e878
1 changed files with 1 additions and 1 deletions
  1. 1 1
      funasr/runtime/onnxruntime/src/funasrruntime.cpp

+ 1 - 1
funasr/runtime/onnxruntime/src/funasrruntime.cpp

@@ -390,7 +390,7 @@ extern "C" {
 			// if (!audio->FfmpegLoad(sz_buf, n_len))
 			// 	return nullptr;
 			LOG(ERROR) <<"Wrong wav_format: " << wav_format ;
-			exit(-1);
+			return nullptr;
 		}
 
 		funasr::FUNASR_RECOG_RESULT* p_result = new funasr::FUNASR_RECOG_RESULT;