mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avfilter/af_whisper: Add newline for txt format
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user