[vlc-devel] [PATCH] mux:mp4: create Fragmented MP4 compatible with the Apple TV

Steve Lhomme robux4 at ycbcr.xyz
Thu Jul 26 15:06:34 CEST 2018


---
 modules/mux/mp4/mp4.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/mux/mp4/mp4.c b/modules/mux/mp4/mp4.c
index 0d5b2a4c72..f5ab21cc11 100644
--- a/modules/mux/mp4/mp4.c
+++ b/modules/mux/mp4/mp4.c
@@ -1224,7 +1224,8 @@ static void FlushHeader(sout_mux_t *p_mux)
     sout_mux_sys_t *p_sys = (sout_mux_sys_t*) p_mux->p_sys;
 
     /* Now add ftyp header */
-    bo_t *ftyp = mp4mux_GetFtyp(MAJOR_isom, 0, NULL, 0);
+    vlc_fourcc_t extra[] = {MAJOR_isom};
+    bo_t *ftyp = mp4mux_GetFtyp(MAJOR_isom, 0, extra, ARRAY_SIZE(extra));
     if(!ftyp)
         return;
 
-- 
2.17.0



More information about the vlc-devel mailing list