Commit eaede137 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: smooth: use es_format_Change

parent 63a3227d
......@@ -215,9 +215,8 @@ block_t * ForgedInitSegment::buildMoovBox()
trackinfo.i_trex_default_length = 1;
trackinfo.i_trex_default_size = 1;
trackinfo.fmt.i_cat = es_type;
es_format_Change(&trackinfo.fmt, es_type, vlc_fourcc_GetCodec(es_type, fourcc));
trackinfo.fmt.i_original_fourcc = fourcc;
trackinfo.fmt.i_codec = vlc_fourcc_GetCodec(es_type, fourcc);
switch(es_type)
{
case VIDEO_ES:
......
......@@ -50,7 +50,7 @@ bool mp4mux_trackinfo_Init(mp4mux_trackinfo_t *p_stream, unsigned i_id,
if(!p_stream->entry)
return false;
es_format_Init(&p_stream->fmt, 0, 0);
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