aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/gxfenc.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2016-02-06 17:58:48 +0100
committerMarton Balint <cus@passwd.hu>2016-02-14 01:51:14 +0100
commit5c20bc8f4726ca90baa472b76a89d5f4b7db0481 (patch)
tree9d4f3d2d3ef3d574c77b14e9985e75632d52664d /libavformat/gxfenc.c
parent83b01ed21239e88dba09b05cde5c2cd5b65f20e0 (diff)
downloadffmpeg-5c20bc8f4726ca90baa472b76a89d5f4b7db0481.tar.gz
avformat/gxfenc: use ff_parse_creation_time_metadata
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/gxfenc.c')
-rw-r--r--libavformat/gxfenc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c
index 12031f7cd9..8229fe9500 100644
--- a/libavformat/gxfenc.c
+++ b/libavformat/gxfenc.c
@@ -436,13 +436,11 @@ static int gxf_write_umf_material_description(AVFormatContext *s)
AVIOContext *pb = s->pb;
int timecode_base = gxf->time_base.den == 60000 ? 60 : 50;
int64_t timestamp = 0;
- AVDictionaryEntry *t;
uint64_t nb_fields;
uint32_t timecode_in; // timecode at mark in
uint32_t timecode_out; // timecode at mark out
- if (t = av_dict_get(s->metadata, "creation_time", NULL, 0))
- timestamp = ff_iso8601_to_unix_time(t->value);
+ ff_parse_creation_time_metadata(s, &timestamp, 1);
timecode_in = GXF_TIMECODE(gxf->tc.color, gxf->tc.drop,
gxf->tc.hh, gxf->tc.mm,