The SRT file format requires commas in the time string, not periods. (cherry picked from commit 73d411c399df4abe2750b611fc8381979fcbafc6)
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -246,7 +246,7 @@ static void run_transcription(AVFilterContext *ctx, AVFrame *frame, int samples) · 245 unmodified lines | |||
| 246 | if (!av_strcasecmp(wctx->format, "srt")) { | 246 | if (!av_strcasecmp(wctx->format, "srt")) { |
| 247 | buf = | 247 | buf = |
| 248 | av_asprintf | 248 | 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", |
| 250 | wctx->index, start_t / 3600000, | 250 | wctx->index, start_t / 3600000, |
| 251 | (start_t / 60000) % 60, (start_t / 1000) % 60, | 251 | (start_t / 60000) % 60, (start_t / 1000) % 60, |
| 252 | start_t % 1000, end_t / 3600000, (end_t / 60000) % 60, | 252 | start_t % 1000, end_t / 3600000, (end_t / 60000) % 60, |