Fixed realy strange behavior<div><br></div><div>TagLib::MPEG::FileRef fref(filename); // .mp3 file without any tags</div><div>TagLib::MPEG::File* file = fref.file();</div><div><div>TagLib::ID3v2::Tag *tag = file-&gt;ID3v2Tag();</div>

<div>ASSERT(tag);</div><div>tag-&gt;header()-&gt;setMajorVersion(3); // !!!</div></div><div>// set other tag fields</div><div>fref.save();</div><div><br></div><div>Got ID3v2.4 tags in file.</div><div><br></div><div>PS. Also added constructor MP4::Tag::Tag()</div>

<div><br></div><div>PPS. Please do thomthing to make it compilable under mingw (about isWritable()/isReadable())</div>