Hi, another warning under MinGW fixed, because the format specifiers are not supported, cf. for instance: https://msdn.microsoft.com/en-us/library/fe06s4ak.aspx
-- Christophe
From 6d3e4eb5df0eacf3df011dbe3e05a82f814f63b1 Mon Sep 17 00:00:00 2001 From: Christophe Gisquet <christophe.gisq...@gmail.com> Date: Tue, 20 Jan 2015 22:33:00 +0100 Subject: [PATCH 2/2] 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). --- 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); -- 1.9.2.msysgit.0
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel