]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
whisper : fix uninitialized exp_n_audio_ctx
authorFinn Voorhees <redacted>
Tue, 21 Feb 2023 11:42:10 +0000 (11:42 +0000)
committerGeorgi Gerganov <redacted>
Tue, 21 Feb 2023 16:58:08 +0000 (18:58 +0200)
whisper.cpp

index 9a9e562a6c9124c6e4cdfb1714ffa57b3912061a..9c9aefdffc186ca6c0168e80c129be23e4706486 100644 (file)
@@ -601,7 +601,7 @@ struct whisper_context {
     std::vector<float> energy; // PCM signal energy
 
     // [EXPERIMENTAL] speed-up techniques
-    int32_t exp_n_audio_ctx; // 0 - use default
+    int32_t exp_n_audio_ctx = 0; // 0 - use default
 
     void use_buf(struct ggml_context * ctx, int i) {
 #if defined(WHISPER_USE_SCRATCH)