summaryrefslogtreecommitdiff
path: root/ffmpeg_opt.c
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2015-01-20 22:33:00 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-24 13:05:15 +0100
commitba6888c0e3b5b0d6785b36d0ec7e51de4628b787 (patch)
tree48603183852736da3bd0fadbba1557d3f354da6a /ffmpeg_opt.c
parent2699a378167550d50f2b32587bdbc985a2a6bc54 (diff)
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@gmx.at>
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r--ffmpeg_opt.c2
1 files changed, 1 insertions, 1 deletions
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);