diff options
author | Marton Balint <cus@passwd.hu> | 2016-02-06 18:00:45 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2016-02-14 01:51:14 +0100 |
commit | 5f64f3d8cf06631541a4abb1e9a0a4bf4b8e6e0f (patch) | |
tree | a17b7d52c8020fe45fa57e591852ee38c71b6934 /libavformat | |
parent | 5c20bc8f4726ca90baa472b76a89d5f4b7db0481 (diff) | |
download | ffmpeg-5f64f3d8cf06631541a4abb1e9a0a4bf4b8e6e0f.tar.gz |
avformat/movenc: use ff_parse_creation_time_metadata
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 799c26fd55..b9c0f7ae67 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5370,13 +5370,7 @@ static int mov_write_header(AVFormatContext *s) mov_write_mdat_tag(pb, mov); } - if (t = av_dict_get(s->metadata, "creation_time", NULL, 0)) { - mov->time = ff_iso8601_to_unix_time(t->value); - if (mov->time < 0) { - av_log(s, AV_LOG_WARNING, "Failed to parse creation_time %s\n", t->value); - mov->time = 0; - } - } + ff_parse_creation_time_metadata(s, &mov->time, 1); if (mov->time) mov->time += 0x7C25B080; // 1970 based -> 1904 based |