From ba6888c0e3b5b0d6785b36d0ec7e51de4628b787 Mon Sep 17 00:00:00 2001 From: Christophe Gisquet Date: Tue, 20 Jan 2015 22:33:00 +0100 Subject: [PATCH] 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 --- ffmpeg_opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index a0c977b5a7..9fe54fffbf 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);