From 5f0a7da4810f75e7d0cf49661b1f393172eb2b31 Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Tue, 24 Mar 2015 10:41:39 +0900 Subject: [PATCH] Take into account the frame header version when skipping an empty frame. --- taglib/mpeg/id3v2/id3v2tag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taglib/mpeg/id3v2/id3v2tag.cpp b/taglib/mpeg/id3v2/id3v2tag.cpp index 33345407..f18dcebc 100644 --- a/taglib/mpeg/id3v2/id3v2tag.cpp +++ b/taglib/mpeg/id3v2/id3v2tag.cpp @@ -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; -- 2.40.0