Commit 83b01ed2 authored by Marton Balint's avatar Marton Balint

avformat/ffmenc: use ff_parse_creation_time_metadata

FYI this muxer bails out on parse error and not just warn the user.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent bf0607b6
......@@ -221,17 +221,13 @@ static int ffm_write_recommended_config(AVIOContext *pb, AVCodecContext *ctx, un
static int ffm_write_header(AVFormatContext *s)
{
FFMContext *ffm = s->priv_data;
AVDictionaryEntry *t;
AVStream *st;
AVIOContext *pb = s->pb;
AVCodecContext *codec;
int bit_rate, i, ret;
if (t = av_dict_get(s->metadata, "creation_time", NULL, 0)) {
ret = av_parse_time(&ffm->start_time, t->value, 0);
if (ret < 0)
return ret;
}
if ((ret = ff_parse_creation_time_metadata(s, &ffm->start_time, 0)) < 0)
return ret;
ffm->packet_size = FFM_PACKET_SIZE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment