[FFmpeg-cvslog] avformat/dvenc: use ff_parse_creation_time_metadata
Marton Balint
git at videolan.org
Sun Feb 14 02:50:11 CET 2016
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Feb 6 17:57:21 2016 +0100| [bf0607b6dbca9e9faebe8b038f45353dd6c0659c] | committer: Marton Balint
avformat/dvenc: 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=bf0607b6dbca9e9faebe8b038f45353dd6c0659c
---
libavformat/dvenc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libavformat/dvenc.c b/libavformat/dvenc.c
index 502cc26..6cefe8b 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))) {
More information about the ffmpeg-cvslog
mailing list