X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg_opt.c;h=00d91c82950a277c4f4d654dcc19608db7183701;hb=5557e881c9e5138f916447d8137b0ce404cd256c;hp=edbc4a0efe02f1dca56718ed452e48aa882f25dc;hpb=ef7ce480c848267a77bd89666b9b22b2298c181d;p=ffmpeg diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index edbc4a0efe0..00d91c82950 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -40,7 +40,6 @@ #include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" #include "libavutil/pixfmt.h" -#include "libavutil/time_internal.h" #define DEFAULT_PASS_LOGFILENAME_PREFIX "ffmpeg2pass" @@ -2430,7 +2429,6 @@ loop_end: char type, *val; const char *stream_spec; int index = 0, j, ret = 0; - char now_time[256]; val = strchr(o->metadata[i].u.str, '='); if (!val) { @@ -2440,17 +2438,6 @@ loop_end: } *val++ = 0; - if (!strcmp(o->metadata[i].u.str, "creation_time") && - !strcmp(val, "now")) { - time_t now = time(0); - struct tm *ptm, tmbuf; - ptm = localtime_r(&now, &tmbuf); - if (ptm) { - if (strftime(now_time, sizeof(now_time), "%Y-%m-%d %H:%M:%S", ptm)) - val = now_time; - } - } - parse_meta_type(o->metadata[i].specifier, &type, &index, &stream_spec); if (type == 's') { for (j = 0; j < oc->nb_streams; j++) {