mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Take into account the frame header version when skipping an empty frame.
This commit is contained in:
parent
d33d684fab
commit
5f0a7da481
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user