This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 065c2582c0 avfilter/af_whisper: Add newline for txt format
065c2582c0 is described below

commit 065c2582c0af0f03d70a5e7baaaa67c031ae0a2f
Author:     WyattBlue <[email protected]>
AuthorDate: Sun Dec 21 03:54:44 2025 -0500
Commit:     Marton Balint <[email protected]>
CommitDate: Tue Feb 3 21:45:43 2026 +0000

    avfilter/af_whisper: Add newline for txt format
---
 libavfilter/af_whisper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_whisper.c b/libavfilter/af_whisper.c
index d5f9203db1..fcc7e415cc 100644
--- a/libavfilter/af_whisper.c
+++ b/libavfilter/af_whisper.c
@@ -256,7 +256,7 @@ static void run_transcription(AVFilterContext *ctx, AVFrame 
*frame, int samples)
             } else if (!av_strcasecmp(wctx->format, "json")) {
                 buf = av_asprintf("{\"start\":%" PRId64 ",\"end\":%" PRId64 
",\"text\":\"%s\"}\n", start_t, end_t, text_cleaned);
             } else
-                buf = av_strdup(text_cleaned);
+                buf = av_asprintf("%s\n", text_cleaned);
 
             if (buf) {
                 avio_write(wctx->avio_context, buf, strlen(buf));

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to