avformat/movenc: use ff_parse_creation_time_metadata
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
5c20bc8f47
commit
5f64f3d8cf
@ -5370,13 +5370,7 @@ static int mov_write_header(AVFormatContext *s)
|
|||||||
mov_write_mdat_tag(pb, mov);
|
mov_write_mdat_tag(pb, mov);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t = av_dict_get(s->metadata, "creation_time", NULL, 0)) {
|
ff_parse_creation_time_metadata(s, &mov->time, 1);
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (mov->time)
|
if (mov->time)
|
||||||
mov->time += 0x7C25B080; // 1970 based -> 1904 based
|
mov->time += 0x7C25B080; // 1970 based -> 1904 based
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user