aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2016-02-06 17:57:21 +0100
committerMarton Balint <cus@passwd.hu>2016-02-14 01:51:14 +0100
commitbf0607b6dbca9e9faebe8b038f45353dd6c0659c (patch)
tree7b57fad942bde77e9713948090ec24948eaa7093 /libavformat
parentea1bf08a4c5a321a98d11bbe437713b82248ec4e (diff)
downloadffmpeg-bf0607b6dbca9e9faebe8b038f45353dd6c0659c.tar.gz
avformat/dvenc: use ff_parse_creation_time_metadata
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/dvenc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/dvenc.c b/libavformat/dvenc.c
index 502cc26a06..6cefe8be40 100644
--- a/libavformat/dvenc.c
+++ b/libavformat/dvenc.c
@@ -302,7 +302,6 @@ static DVMuxContext* dv_init_mux(AVFormatContext* s)
{
DVMuxContext *c = s->priv_data;
AVStream *vst = NULL;
- AVDictionaryEntry *t;
int i;
/* we support at most 1 video and 2 audio streams */
@@ -363,8 +362,7 @@ static DVMuxContext* dv_init_mux(AVFormatContext* s)
c->frames = 0;
c->has_audio = 0;
c->has_video = 0;
- if (t = av_dict_get(s->metadata, "creation_time", NULL, 0))
- c->start_time = ff_iso8601_to_unix_time(t->value);
+ ff_parse_creation_time_metadata(s, &c->start_time, 1);
for (i=0; i < c->n_ast; i++) {
if (c->ast[i] && !(c->audio_data[i]=av_fifo_alloc_array(100, MAX_AUDIO_FRAME_SIZE))) {