Browse Source

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

Fixes ticket #7442.

Reviewed-by: Reto Kromer
Carl Eugen Hoyos 6 years ago
parent
commit
26902f2ef0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libavformat/webvttenc.c

+ 1 - 1
libavformat/webvttenc.c

@@ -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);
 }