Commit 1245ae2f authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

mp4:libmp4mux: no need to init the es_format_t

It is always overridden right after the init.
That saves an unnecessary es_format_Clean each time.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 0b7ad3ef
......@@ -215,7 +215,7 @@ block_t * ForgedInitSegment::buildMoovBox()
trackinfo.i_trex_default_length = 1;
trackinfo.i_trex_default_size = 1;
es_format_Change(&trackinfo.fmt, es_type, vlc_fourcc_GetCodec(es_type, fourcc));
es_format_Init(&trackinfo.fmt, es_type, vlc_fourcc_GetCodec(es_type, fourcc));
trackinfo.fmt.i_original_fourcc = fourcc;
......@@ -50,8 +50,6 @@ bool mp4mux_trackinfo_Init(mp4mux_trackinfo_t *p_stream, unsigned i_id,
return false;
es_format_Init(&p_stream->fmt, UNKNOWN_ES, 0);
return true;
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