shithub: aacenc

Download patch

ref: cc8b449a35bec47c26b80c9c40b3e7c92a0a1694
parent: ccc31b06e2ab7ee8549ce26fe4e377cd82d03916
author: knik <knik@users.sourceforge.net>
date: Tue Jul 18 18:21:54 EDT 2017

'meta' atom format fixed

--- a/frontend/mp4atom.c
+++ b/frontend/mp4atom.c
@@ -250,7 +250,7 @@
 };
 
 
-static int hdlrout(void)
+static int hdlr1out(void)
 {
     int size = 0;
 
@@ -548,6 +548,16 @@
 
     // version/flags
     size += u32out(0);
+
+    return size;
+}
+
+static int hdlr2out(void)
+{
+    int size = 0;
+
+    // version/flags
+    size += u32out(0);
     // Predefined
     size += u32out(0);
     // Handler type
@@ -626,7 +636,7 @@
     {ATOM_NAME, "mdhd"},
     {ATOM_DATA, mdhdout},
     {ATOM_NAME, "hdlr"},
-    {ATOM_DATA, hdlrout},
+    {ATOM_DATA, hdlr1out},
     {ATOM_NAME, "minf"},
     {ATOM_DESCENT},
     {ATOM_NAME, "smhd"},
@@ -667,9 +677,10 @@
     {ATOM_NAME, "udta"},
     {ATOM_DESCENT},
     {ATOM_NAME, "meta"},
+    {ATOM_DATA, metaout},
     {ATOM_DESCENT},
     {ATOM_NAME, "hdlr"},
-    {ATOM_DATA, metaout},
+    {ATOM_DATA, hdlr2out},
     {ATOM_NAME, "ilst"},
     {ATOM_DATA, ilstout},
     {0}