changeset 139:d5ac5007713c libavformat

c frame size debug stuff
author michaelni
date Sun, 25 May 2003 23:41:25 +0000
parents 7373bd0a8438
children 0617a3812600
files 4xm.c
diffstat 1 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/4xm.c	Sun May 25 05:18:30 2003 +0000
+++ b/4xm.c	Sun May 25 23:41:25 2003 +0000
@@ -222,12 +222,23 @@
         switch (fourcc_tag) {
 
         case ifrm_TAG:
+printf (" %cfrm chunk\n", (char)(fourcc_tag >> 24) & 0xFF);
+url_fseek(pb, size, SEEK_CUR);
+            break;
         case pfrm_TAG:
-        case cfrm_TAG:
 printf (" %cfrm chunk\n", (char)(fourcc_tag >> 24) & 0xFF);
 url_fseek(pb, size, SEEK_CUR);
             break;
-
+        case cfrm_TAG:{
+get_le32(pb);
+int id= get_le32(pb);
+int whole= get_le32(pb);
+static int stats[1000];
+stats[id] += size - 12;
+printf(" cfrm chunk id:%d size:%d whole:%d until now:%d\n", id, size, whole, stats[id]);
+url_fseek(pb, size-12, SEEK_CUR);
+            break;
+        }
         case snd__TAG:
 printf (" snd_ chunk, ");
             track_number = get_le32(pb);