shithub: aacdec

Download patch

ref: e2d3ad8e2ba155aa097735c4b0376f361521fbc2
parent: 706209c9be5a157ca0dd215358eeb9c0aceb00a6
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Wed Aug 9 12:06:59 EDT 2017

fixed extended tag('----') read

--- a/frontend/mp4read.c
+++ b/frontend/mp4read.c
@@ -567,8 +567,11 @@
                 asize -= 4;
                 if (memcmp(id, "name", 4))
                     goto skip;
+                u32in();
+                asize -= 4;
+                dsize -= 4;
             }
-            spc = 17 - dsize;
+            spc = 13 - dsize;
             if (spc < 0) spc = 0;
             while (dsize > 0)
             {
@@ -588,6 +591,9 @@
                 asize -= 4;
                 if (memcmp(id, "data", 4))
                     goto skip;
+                u32in();
+                asize -= 4;
+                dsize -= 4;
             }
             while (dsize > 0)
             {