# HG changeset patch # User Eugene Zagidullin # Date 1196297225 -10800 # Node ID c8d558dab2a7d34246eb21cb6ee209424383beec # Parent dfa3c3aa2dc7ed94d25594d9f375b44f1e77e4ea debugging stuff added... diff -r dfa3c3aa2dc7 -r c8d558dab2a7 src/demac/apev2.c --- a/src/demac/apev2.c Thu Nov 29 03:09:13 2007 +0300 +++ b/src/demac/apev2.c Thu Nov 29 03:47:05 2007 +0300 @@ -19,6 +19,8 @@ * */ +#define DEBUG + #include #include #include @@ -41,10 +43,11 @@ unsigned char tmp[TMP_BUFSIZE+1]; unsigned char tmp2[TMP_BUFSIZE+1]; guint64 signature; - guint32 tag_version; - guint32 tag_size, item_size, item_flags; - guint32 tag_items; - guint32 tag_flags; + int tag_version; + long tag_size, item_size; + int item_flags; + int tag_items; + int tag_flags; mowgli_dictionary_t *dict; aud_vfs_fseek(vfd, -32, SEEK_END); @@ -61,7 +64,8 @@ tag_items = get_le32(vfd); tag_flags = get_le32(vfd); #ifdef DEBUG - fprintf(stderr, "** demac: apev2.c: found APE tag version %d contains %d items, flags %08x\n", tag_version, tag_items, tag_flags); + fprintf(stderr, "** demac: apev2.c: found APE tag version %d, size %ld, contains %d items, flags %08x\n", + tag_version, tag_size, tag_items, tag_flags); #endif if(tag_items == 0) { #ifdef DEBUG @@ -78,6 +82,9 @@ for(i=0; i