bug in header size fld?
Ray
whatdoineed2do at yahoo.co.uk
Tue Oct 16 00:54:37 CEST 2007
hi,
i've run into a few strange oddities in that 2.4 tags
seem to get truncated on my mobile mp3 player.
tracking this down i got 2 empty files and tagged them
with the same details using 1 misc tagger and then
something using taglib1.4
using taglib (file called bar.mp3), it seemed to pad
out the file from 0 bytes to 1093 whilst the other
tagged file (foo.mp3) was only 69;
album = "random album"
artist = "foo Foo"
title = "bar Bar"
foo's header size (bytes 7-10 inclusive) is listed as
00003b00 but i'm confused as 3b hex is 59 dec which is
correct but whats the extra 00 at byte 10?
bar's header size is lised at 00003b08. can someone
tell me if i am misinterpretting the header? i
understood
0-2 = "ID3"
3-4 = mjr/mnr
5 = (upper 4bits) flags
7-9 = tag size
can someone help me out on this?
thanks
-r
# foo.mp3 (misc tagger) 69 bytes
$ od -xc foo.mp3
0000000 4449 0433 0000 0000 3b00 5054 3145 0000
I D 3 004 \0 \0 \0 \0 \0 ; T
P E 1 \0 \0
0000020 0800 0000 6600 6f6f 4620 6f6f 4954 3254
\0 \b \0 \0 \0 f o o F o
o T I T 2
0000040 0000 0800 0000 6200 7261 4220 5241 4154
\0 \0 \0 \b \0 \0 \0 b a r
B A R T A
0000060 424c 0000 0d00 0000 7200 6e61 6f64 206d
L B \0 \0 \0 \r \0 \0 \0 r a
n d o m
0000100 6c61 7562 006d
a l b u m \0
0000105
# bar.mp3 (taglib tagger) 1093 bytes
$ od -xc bar.mp3
0000000 4449 0433 0000 0000 3b08 5054 3145 0000
I D 3 004 \0 \0 \0 \0 \b ; T
P E 1 \0 \0
0000020 0800 0000 6603 6f6f 4620 6f6f 4154 424c
\0 \b \0 \0 003 f o o F o
o T A L B
0000040 0000 0d00 0000 7203 6e61 6f64 206d 6c61
\0 \0 \0 \r \0 \0 003 r a n d
o m a l
0000060 7562 546d 5449 0032 0000 0008 0300 6162
b u m T I T 2 \0 \0 \0 \b
\0 \0 003 b a
0000100 2072 4142 0052 0000 0000 0000 0000 0000
r B A R \0 \0 \0 \0 \0 \0
\0 \0 \0 \0 \0
0000120 0000 0000 0000 0000 0000 0000 0000 0000
\0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
\0 \0 \0 \0 \0
*
0002100 0000 0000 0000
\0 \0 \0 \0 \0 \0
0002105
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
More information about the taglib-devel
mailing list