MP4 atoms incorrectly showing as non-null empty strings (e.g., "aART" and "\251wrt" atoms)

Duke Yin yindesu at gmail.com
Wed Apr 3 10:28:01 UTC 2013


I've added log statements to the 1.8 final source code and determined that
when an MP4 file/tag is constructed, the tag is constructed multiple times.

Test file:
http://dl.dropbox.com/u/22586935/test/121%20My%20Heart%2C%20My%20Soul.m4a

Log change:
https://github.com/taglib/taglib/blob/stable/taglib/mp4/mp4tag.cpp#L174
In ParseText function,
Added: printf("Inserted %s : %s.",
            atom->name.data(),
            value.toString(" ; ").toCString(true));

Full log:
http://pastebin.com/EYba1uDL

Order of tags read:
04-03 03:13:29.545: Inserted �alb�������� :
04-03 03:13:29.545: Inserted aART�������� :
04-03 03:13:29.555: Inserted �ART�������� :
04-03 03:13:29.555: Inserted �wrt�������� : Good (1st)
04-03 03:13:29.555: Inserted cprt�������� :
04-03 03:13:29.555: Inserted �lyr�������� :
04-03 03:13:29.555: Inserted �nam�������� :
04-03 03:13:29.565: Inserted �too�������� :
04-03 03:13:29.565: Inserted �day�������� :
04-03 03:13:29.565: Inserted �wrt�������� : BAD blank! (2nd)
04-03 03:13:29.585: Inserted �alb: :
04-03 03:13:29.585: Inserted aARTo :
04-03 03:13:29.585: Inserted �ARTp :
04-03 03:13:29.585: Inserted �wrt0 : Good (3rd)
04-03 03:13:29.585: Inserted cprt  :
04-03 03:13:29.595: Inserted �lyr, : (longer by 7-8 chars compared to the
first "?lry" atom)
04-03 03:13:29.595: Inserted �nam in my h :
04-03 03:13:29.595: Inserted �toodo it to :
04-03 03:13:29.595: Inserted �dayuals[00 :
04-03 03:13:29.595: Inserted �wrtack to b : BAD blank! (4th)


As you can see, Composer was read 4 times, with the last read being a blank
string.  Additionally, atom's name gets garbled after the first 4
characters.

Can anyone explain what's going on here?  Bad m4a file?  Bug in TagLib?
Broken behavior because of compiling for Android?

Thanks,
Duke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20130403/99454745/attachment.html>


More information about the taglib-devel mailing list