diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-09-17 18:20:05 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-09-19 18:07:32 +0200 |
commit | 26902f2ef0dc7b65992228767b8adba46e7a6d48 (patch) | |
tree | 5782917a41b2ba349124c6a0bf653fa9cab7066c /libavformat/webvttenc.c | |
parent | e33b28cc79d164fff22bfee750c9283587c00bc4 (diff) |
lavf/webvttenc: Always write hours in the timestamp with two characters.
Fixes ticket #7442.
Reviewed-by: Reto Kromer
Diffstat (limited to 'libavformat/webvttenc.c')
-rw-r--r-- | libavformat/webvttenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/webvttenc.c b/libavformat/webvttenc.c index 4827de05d5..61b7f54622 100644 --- a/libavformat/webvttenc.c +++ b/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); } |