projects
/
ffmpeg.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b784c3e
)
avfilter/af_whisper: fix srt file format
author
Vittorio Palmisano
<vpalmisano@gmail.com>
Fri, 29 Aug 2025 09:32:20 +0000
(11:32 +0200)
committer
Zhao Zhili
<zhilizhao@tencent.com>
Mon, 20 Oct 2025 04:45:51 +0000
(12:45 +0800)
The SRT file format requires commas in the time string, not periods.
(cherry picked from commit
73d411c399df4abe2750b611fc8381979fcbafc6
)
libavfilter/af_whisper.c
patch
|
blob
|
history
diff --git
a/libavfilter/af_whisper.c
b/libavfilter/af_whisper.c
index 385180b4ed678e0c858c930d421559d04c1c5945..663fe446bb570367cba9d315c699df076d25a2be 100644
(file)
--- a/
libavfilter/af_whisper.c
+++ b/
libavfilter/af_whisper.c
@@
-246,7
+246,7
@@
static void run_transcription(AVFilterContext *ctx, AVFrame *frame, int samples)
if (!av_strcasecmp(wctx->format, "srt")) {
buf =
av_asprintf
- ("%d\n%02ld:%02ld:%02ld
.%03ld --> %02ld:%02ld:%02ld.
%03ld\n%s\n\n",
+ ("%d\n%02ld:%02ld:%02ld
,%03ld --> %02ld:%02ld:%02ld,
%03ld\n%s\n\n",
wctx->index, start_t / 3600000,
(start_t / 60000) % 60, (start_t / 1000) % 60,
start_t % 1000, end_t / 3600000, (end_t / 60000) % 60,