[FFmpeg-cvslog] ffmpeg_opt: expand format for strftime

Christophe Gisquet git at videolan.org
Sat Jan 24 13:12:32 CET 2015


ffmpeg | branch: master | Christophe Gisquet <christophe.gisquet at gmail.com> | Tue Jan 20 22:33:00 2015 +0100| [ba6888c0e3b5b0d6785b36d0ec7e51de4628b787] | committer: Michael Niedermayer

ffmpeg_opt: expand format for strftime

While the shortened format specifiers are valid C99 ones, they are
not supported by e.g. some Visual Studio runtimes (and thus mingw).

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 ffmpeg_opt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index a0c977b..9fe54ff 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -519,7 +519,7 @@ static int opt_recording_timestamp(void *optctx, const char *opt, const char *ar
     char buf[128];
     int64_t recording_timestamp = parse_time_or_die(opt, arg, 0) / 1E6;
     struct tm time = *gmtime((time_t*)&recording_timestamp);
-    if (!strftime(buf, sizeof(buf), "creation_time=%FT%T%z", &time))
+    if (!strftime(buf, sizeof(buf), "creation_time=%Y-%m-%dT%H:%M:%S%z", &time))
         return -1;
     parse_option(o, "metadata", buf, options);
 



More information about the ffmpeg-cvslog mailing list