diff --git a/taglib/asf/asfattribute.cpp b/taglib/asf/asfattribute.cpp index 87d53dbc..04e02351 100644 --- a/taglib/asf/asfattribute.cpp +++ b/taglib/asf/asfattribute.cpp @@ -251,7 +251,7 @@ int ASF::Attribute::dataSize() const if(d->pictureValue.isValid()) { return d->pictureValue.dataSize(); } - break; + return d->byteVectorValue.size(); case GuidType: return d->byteVectorValue.size(); } @@ -292,6 +292,9 @@ ByteVector ASF::Attribute::render(const String &name, int kind) const if(d->pictureValue.isValid()) { data.append(d->pictureValue.render()); } + else { + data.append(d->byteVectorValue); + } break; case GuidType: data.append(d->byteVectorValue);