mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avfilter/af_whisper: fix srt file format
The SRT file format requires commas in the time string, not periods. (cherry picked from commit 73d411c399df4abe2750b611fc8381979fcbafc6)
This commit is contained in:
parent
b784c3eb6d
commit
adc819773b
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue