1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavf/webvttenc: Always write hours in the timestamp with two characters.

Fixes ticket #7442.

Reviewed-by: Reto Kromer
This commit is contained in:
Carl Eugen Hoyos 2018-09-17 18:20:05 +02:00
parent e33b28cc79
commit 26902f2ef0

View File

@ -38,7 +38,7 @@ static void webvtt_write_time(AVIOContext *pb, int64_t millisec)
min -= 60 * hour;
if (hour > 0)
avio_printf(pb, "%"PRId64":", hour);
avio_printf(pb, "%02"PRId64":", hour);
avio_printf(pb, "%02"PRId64":%02"PRId64".%03"PRId64"", min, sec, millisec);
}