]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
whisper : clear result_all if vad_samples is empty (#3262)
authorDaniel Bevenius <redacted>
Wed, 18 Jun 2025 09:30:29 +0000 (11:30 +0200)
committerGitHub <redacted>
Wed, 18 Jun 2025 09:30:29 +0000 (11:30 +0200)
commit1591558ccce3ce30dfd5bb673595eb0057625377
tree37fb74f9110bccbd72fe09e5ff05c3f70891af1b
parentf3ff80ea8da044e5b8833e7ba54ee174504c518d
whisper : clear result_all if vad_samples is empty (#3262)

This commit clears the results_all vector no VAD segments are found.

The motivation for this is that this would normally be done by
`whisper_full_with_state` but when no VAD segments are detected this
current implementation does not call that function and hence the vector
does not get reset. This can lead to issues in applications like the
server example where it will incorrectly process the old results.

Resolves: https://github.com/ggml-org/whisper.cpp/issues/3250
src/whisper.cpp