Commit 26902f2e authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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

Fixes ticket #7442.

Reviewed-by: Reto Kromer
parent e33b28cc
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment