Probs with crippled ogg files

Marc Halbrügge marc.halbruegge at native-instruments.de
Tue Oct 7 17:33:19 CEST 2008


Hi,

taglib corrupts ogg files when the amount of tag data exceeds the size 
of an ogg page. The resulting file cannot be played anymore :(

I've filed a bug and attached a patch about a week ago:
https://bugs.kde.org/show_bug.cgi?id=171957

Would be great if someone could take a look :)

Greetz
Marc


PS:
How to cripple an ogg file using taglib:

#define BIGTAG_SIZE (100000)

File *pFile = new Ogg::Vorbis::File("myfile.ogg");
Ogg::XiphComment *pXiphComment = 
dynamic_cast<Ogg::Vorbis::File*>(pFile))->tag();
char *pChar = new char[BIGTAG_SIZE];
memset(pChar, 'q', BIGTAG_SIZE-1);
pChar[BIGTAG_SIZE-1]=0;
pXiphComment->addField("BIGTAG", pChar);
pFile->save();


More information about the taglib-devel mailing list