mirror of
https://github.com/taglib/taglib.git
synced 2025-07-17 12:34:23 -04:00
Don't append a framing bit when writing Xiph comments to FLAC files since this
renders them unplayable with some players. Thanks to Jason Lee for tracking this down! CCMAIL:75880-done@bugs.kde.org git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@308437 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -197,6 +197,11 @@ void Ogg::XiphComment::removeField(const String &key, const String &value)
|
||||
}
|
||||
|
||||
ByteVector Ogg::XiphComment::render() const
|
||||
{
|
||||
return render(true);
|
||||
}
|
||||
|
||||
ByteVector Ogg::XiphComment::render(bool addFramingBit) const
|
||||
{
|
||||
ByteVector data;
|
||||
|
||||
@ -238,8 +243,9 @@ ByteVector Ogg::XiphComment::render() const
|
||||
}
|
||||
|
||||
// Append the "framing bit".
|
||||
|
||||
data.append(char(1));
|
||||
|
||||
if(addFramingBit)
|
||||
data.append(char(1));
|
||||
|
||||
return data;
|
||||
}
|
||||
|
Reference in New Issue
Block a user