mirror of
https://github.com/taglib/taglib.git
synced 2025-07-23 07:24:30 -04:00
Take into account the frame header version when skipping an empty frame.
This commit is contained in:
@ -597,7 +597,7 @@ ByteVector ID3v2::Tag::render(int version) const
|
||||
}
|
||||
if(!(*it)->header()->tagAlterPreservation()) {
|
||||
const ByteVector frameData = (*it)->render();
|
||||
if(frameData.size() == Frame::headerSize()) {
|
||||
if(frameData.size() == Frame::headerSize((*it)->header()->version())) {
|
||||
debug("An empty ID3v2 frame \'"
|
||||
+ String((*it)->header()->frameID()) + "\' has been discarded");
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user