ID3 frame IDs with 0 should be recognized as valid

http://article.gmane.org/gmane.comp.kde.devel.taglib/2275
This commit is contained in:
Lukáš Lalinský
2012-08-17 07:50:48 +02:00
parent 60e82e6694
commit e86e5f906b
4 changed files with 13 additions and 2 deletions

View File

@ -71,7 +71,7 @@ namespace
return false;
for(ByteVector::ConstIterator it = frameID.begin(); it != frameID.end(); it++) {
if( (*it < 'A' || *it > 'Z') && (*it < '1' || *it > '9') ) {
if( (*it < 'A' || *it > 'Z') && (*it < '0' || *it > '9') ) {
return false;
}
}

View File

@ -107,7 +107,7 @@ Frame *FrameFactory::createFrame(const ByteVector &origData, Header *tagHeader)
}
for(ByteVector::ConstIterator it = frameID.begin(); it != frameID.end(); it++) {
if( (*it < 'A' || *it > 'Z') && (*it < '1' || *it > '9') ) {
if( (*it < 'A' || *it > 'Z') && (*it < '0' || *it > '9') ) {
delete header;
return 0;
}