summaryrefslogtreecommitdiff
path: root/libavformat/webvttenc.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-09-17 18:20:05 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-09-19 18:07:32 +0200
commit26902f2ef0dc7b65992228767b8adba46e7a6d48 (patch)
tree5782917a41b2ba349124c6a0bf653fa9cab7066c /libavformat/webvttenc.c
parente33b28cc79d164fff22bfee750c9283587c00bc4 (diff)
downloadffmpeg-26902f2ef0dc7b65992228767b8adba46e7a6d48.tar.gz
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.c2
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);
}