[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-2/taglib/ogg
From: Scott Wheeler <wheeler () kde ! org>
Date: 2003-10-17 11:16:12
[Download RAW message or body]
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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic