From: Tsuda Kageyu Date: Mon, 6 Feb 2017 01:06:10 +0000 (+0900) Subject: Fix wrong endian of boolean values when saving ASF files. X-Git-Tag: v1.12-beta-1~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd4adf94ced99142dcddd7a943b7742a979ec402;p=taglib Fix wrong endian of boolean values when saving ASF files. --- diff --git a/taglib/asf/asfattribute.cpp b/taglib/asf/asfattribute.cpp index ec909fe8..6faf7973 100644 --- a/taglib/asf/asfattribute.cpp +++ b/taglib/asf/asfattribute.cpp @@ -281,10 +281,10 @@ ByteVector ASF::Attribute::render(const String &name, int kind) const case BoolType: if(kind == 0) { - data.append(ByteVector::fromUInt(toBool())); + data.append(ByteVector::fromUInt(toBool(), false)); } else { - data.append(ByteVector::fromShort(toBool())); + data.append(ByteVector::fromShort(toBool(), false)); } break;