summaryrefslogtreecommitdiff
path: root/libavformat/4xm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-05-25 23:41:25 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-05-25 23:41:25 +0000
commit4a106616a2e2f2d1db8edd3e8f62b6663f396647 (patch)
treee32322bb05ada38699d0a796991e1989324bde51 /libavformat/4xm.c
parent3c96b4ef3813055fcf8bc12a3eb71dc71e6d940a (diff)
downloadffmpeg-4a106616a2e2f2d1db8edd3e8f62b6663f396647.tar.gz
c frame size debug stuff
Originally committed as revision 1905 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/4xm.c')
-rw-r--r--libavformat/4xm.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/libavformat/4xm.c b/libavformat/4xm.c
index b75827fcba..89b6e60a64 100644
--- a/libavformat/4xm.c
+++ b/libavformat/4xm.c
@@ -222,12 +222,23 @@ static int fourxm_read_packet(AVFormatContext *s,
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);