Commit 50e74d70 authored by François Cartegnie's avatar François Cartegnie 🤞

mux: libmp4mux: use brand instead of flag

parent 08364771
......@@ -274,7 +274,7 @@ block_t * ForgedInitSegment::buildMoovBox()
mp4mux_trackinfo_t *p_tracks = &trackinfo;
bo_t *box = NULL;
if(mp4mux_CanMux( NULL, &trackinfo.fmt, true, false ))
if(mp4mux_CanMux( NULL, &trackinfo.fmt, VLC_FOURCC('s', 'm', 'o', 'o'), true ))
box = mp4mux_GetMoovBox(NULL, &p_tracks, 1,
true, false, false, false);
......@@ -1837,9 +1837,9 @@ bo_t *mp4mux_GetFtyp(vlc_fourcc_t major, uint32_t minor, vlc_fourcc_t extra[], s
bool mp4mux_CanMux(vlc_object_t *p_obj, const es_format_t *p_fmt,
bool b_fragmented, bool b_mov)
vlc_fourcc_t i_brand, bool b_fragmented)
case VLC_CODEC_A52:
......@@ -82,7 +82,7 @@ bo_t *box_full_new(const char *fcc, uint8_t v, uint32_t f);
void box_fix (bo_t *box, uint32_t);
void box_gather (bo_t *box, bo_t *box2);
bool mp4mux_CanMux(vlc_object_t *, const es_format_t *, bool, bool);
bool mp4mux_CanMux(vlc_object_t *, const es_format_t *, vlc_fourcc_t, bool);
bo_t *mp4mux_GetFtyp(vlc_fourcc_t, uint32_t, vlc_fourcc_t[], size_t i_fourcc);
bo_t *mp4mux_GetMoovBox(vlc_object_t *, mp4mux_trackinfo_t **pp_tracks, unsigned int i_tracks,
int64_t i_movie_duration,
......@@ -406,7 +406,8 @@ static int AddStream(sout_mux_t *p_mux, sout_input_t *p_input)
mp4_stream_t *p_stream;
if(!mp4mux_CanMux(VLC_OBJECT(p_mux), p_input->p_fmt,
p_sys->b_fragmented, p_sys->b_mov))
p_sys->b_mov ? MAJOR_qt__ : MAJOR_isom,
msg_Err(p_mux, "unsupported codec %4.4s in mp4",
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