Browse Source

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

Fixes ticket #7442.

Reviewed-by: Reto Kromer
tags/n4.1
Carl Eugen Hoyos 7 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 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);
}


Loading…
Cancel
Save