From: Scott Wheeler Date: Tue, 29 Aug 2006 23:19:21 +0000 (+0000) Subject: Make sure that these flags are set to the values that are actually used. X-Git-Tag: v1.5~219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea12745d12d3e8ace6ce82fc32a2f903676840f0;p=taglib Make sure that these flags are set to the values that are actually used. BUG:132191 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@578697 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff --git a/mpeg/id3v2/id3v2header.cpp b/mpeg/id3v2/id3v2header.cpp index c2b25506..3e65601b 100644 --- a/mpeg/id3v2/id3v2header.cpp +++ b/mpeg/id3v2/id3v2header.cpp @@ -158,6 +158,12 @@ ByteVector Header::render() const v.append(char(4)); v.append(char(0)); + // Currently we don't actually support writing extended headers or footers, so + // make sure that the flags are set accordingly. + + d->extendedHeader = false; + d->footerPresent = false; + // render and add the flags std::bitset<8> flags; diff --git a/mpeg/id3v2/id3v2header.h b/mpeg/id3v2/id3v2header.h index 56d2fc8a..cf68c975 100644 --- a/mpeg/id3v2/id3v2header.h +++ b/mpeg/id3v2/id3v2header.h @@ -128,8 +128,8 @@ namespace TagLib { static ByteVector fileIdentifier(); /*! - * Sets the data that will be used as the extended header. 10 bytes, - * starting from \a data will be used. + * Sets the data that will be used as the header. 10 bytes, starting from + * the beginning of \a data are used. */ void setData(const ByteVector &data);