--- a/libavformat/mov.c	2011-12-05 04:22:10.000000000 +0200
+++ b/libavformat/mov.c	2011-12-05 13:52:03.335407153 +0200
@@ -323,7 +323,7 @@
             total_size += 8;
         }
         if (a.size == 0) {
-            a.size = atom.size - total_size;
+            a.size = atom.size - total_size + 8;
             if (a.size <= 8)
                 break;
         }
