[FFmpeg-cvslog] lavf/webvttenc: use proper printf format for int64_t values

Paul B Mahol git at videolan.org
Tue Jul 30 22:32:51 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Jul 30 19:27:43 2013 +0000| [d49252721a18280a2ee8bd58d97942e15cfc219f] | committer: Paul B Mahol

lavf/webvttenc: use proper printf format for int64_t values

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d49252721a18280a2ee8bd58d97942e15cfc219f
---

 libavformat/webvttenc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/webvttenc.c b/libavformat/webvttenc.c
index b06a3bb..bd19a83 100644
--- a/libavformat/webvttenc.c
+++ b/libavformat/webvttenc.c
@@ -38,9 +38,9 @@ static void webvtt_write_time(AVIOContext *pb, int64_t millisec)
     min -= 60 * hour;
 
     if (hour > 0)
-        avio_printf(pb, "%ld:", hour);
+        avio_printf(pb, "%"PRId64":", hour);
 
-    avio_printf(pb, "%02ld:%02ld.%03ld", min, sec, millisec);
+    avio_printf(pb, "%02"PRId64":%02"PRId64".%03"PRId64"", min, sec, millisec);
 }
 
 static int webvtt_write_header(AVFormatContext *ctx)



More information about the ffmpeg-cvslog mailing list