I am using taglib in c++ to change metadata from mp3 files. I have written a code that works great. But I found a MP3 file that cannot open with taglib.
The MP3 file has tags. I can see them with Vlc media player and MediaInfo and with explorer.exe.
I try this minimum codes but it say that the file is not valid.
TagLib::FileRef filer("file.mp3");
if(filer.isNull())
cout <<"null";
or this code:
TagLib::MPEG::File fileMpeg("file.mp3");
if(!fileMpeg.isValid())
{
cout << "file not valid";
}
other files work but not that one. Thanks for your help.
Aucun commentaire:
Enregistrer un commentaire