shithub: aacenc

Download patch

ref: 3aee10e5cb90dd67ed45ff73ee147f067339aa97
parent: f47f32baa441886ef7f640236e30d609f678aa4f
author: knik <knik@users.sourceforge.net>
date: Tue Jul 18 13:40:23 EDT 2017

leftover debug code removed

--- a/frontend/mp4atom.c
+++ b/frontend/mp4atom.c
@@ -680,17 +680,7 @@
 {
     long apos = ftell(g_fout);;
     int size;
-    static int level = 0;
 
-    if (g_atom->opcode != ATOM_NAME)
-    {
-        static int fail = 0;
-        if (++fail > 10)
-            exit(1);
-        printf("internal error: create: not a 'name' opcode\n");
-        return 0;
-    }
-
     size = u32out(8);
     size += dataout(g_atom->data, 4);
 
@@ -702,7 +692,6 @@
     }
     if (g_atom->opcode == ATOM_DESCENT)
     {
-        level++;
         g_atom++;
         while (g_atom->opcode != ATOM_STOP)
         {
@@ -713,7 +702,6 @@
             }
             size += create();
         }
-        level--;
     }
 
     fseek(g_fout, apos, SEEK_SET);