[FFmpeg-cvslog] avformat/gxfenc: use ff_parse_creation_time_metadata

Marton Balint git at videolan.org
Sun Feb 14 02:50:12 CET 2016


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Feb  6 17:58:48 2016 +0100| [5c20bc8f4726ca90baa472b76a89d5f4b7db0481] | committer: Marton Balint

avformat/gxfenc: use ff_parse_creation_time_metadata

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5c20bc8f4726ca90baa472b76a89d5f4b7db0481
---

 libavformat/gxfenc.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c
index 12031f7..8229fe9 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,



More information about the ffmpeg-cvslog mailing list