History

avfilter/af_whisper: fix srt file format

The SRT file format requires commas in the time string, not periods. (cherry picked from commit 73d411c399df4abe2750b611fc8381979fcbafc6)

Vittorio Palmisano committed 1 year ago

Commit adc81971 parent b784c3e1 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_whisper.c+1−1
@@ -246,7 +246,7 @@ static void run_transcription(AVFilterContext *ctx, AVFrame *frame, int samples) · 245 unmodified lines
246246 if (!av_strcasecmp(wctx->format, "srt")) {
247247 buf =
248248 av_asprintf
249− ("%d\n%02ld:%02ld:%02ld.%03ld --> %02ld:%02ld:%02ld.%03ld\n%s\n\n",
249+ ("%d\n%02ld:%02ld:%02ld,%03ld --> %02ld:%02ld:%02ld,%03ld\n%s\n\n",
250250 wctx->index, start_t / 3600000,
251251 (start_t / 60000) % 60, (start_t / 1000) % 60,
252252 start_t % 1000, end_t / 3600000, (end_t / 60000) % 60,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t