mirror of https://git.ffmpeg.org/ffmpeg.git
lavf/webvttenc: Always write hours in the timestamp with two characters.
Fixes ticket #7442. Reviewed-by: Reto Kromer
This commit is contained in:
parent
e33b28cc79
commit
26902f2ef0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue