adding mp4 cover art?

Sander Jansen s.jansen at gmail.com
Sat Jun 8 17:55:46 UTC 2013


Hi,

Currently adding a additional cover art to an existing file seems to be bit
of pain:

TagLib::MP4::CoverArtList list =
mp4->itemListMap()["covr"].toCoverArtList();
list.append(TagLib::MP4::CoverArt(format,TagLib::ByteVector(data,size));
mp4->itemListMap().insert("covr",list);

(as far as I know, list.append will cause a detach() and duplicate the
whole list).

Is there a way to access the CoverArtList directly without causing an extra
copy?

Thanks,

Sander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20130608/bbfcc42f/attachment.html>


More information about the taglib-devel mailing list