CVS commit by wheeler: Forgot to insert the checksum into the rendered page. M +8 -0 oggpage.cpp 1.16 --- kdeextragear-2/taglib/ogg/oggpage.cpp #1.15:1.16 @@ -124,4 +124,12 @@ ByteVector Ogg::Page::render() const data.append(*it); } + + // Compute and set the checksum for the Ogg page. The checksum is taken over + // the entire page with the 4 bytes reserved for the checksum zeroed and then + // inserted in bytes 22-25 of the page header. + + ByteVector checksum = ByteVector::fromUInt(data.checksum(), false); + for(int i = 0; i < 4; i++) + data[i + 22] = checksum[i]; return data;