[xiph-commits] r8531 - trunk/oggdsf/src/lib/core/ogg/libOOOgg

ozone at motherfish-iii.xiph.org ozone at motherfish-iii.xiph.org
Fri Dec 24 22:31:28 PST 2004


Author: ozone
Date: 2004-12-24 22:31:28 -0800 (Fri, 24 Dec 2004)
New Revision: 8531

Modified:
   trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggPageHeader.cpp
Log:
oggdsf:

 * OggPageHeader::setBaseHeader now sets the page sequence number


Modified: trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggPageHeader.cpp
===================================================================
--- trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggPageHeader.cpp	2004-12-24 18:51:31 UTC (rev 8530)
+++ trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggPageHeader.cpp	2004-12-25 06:31:28 UTC (rev 8531)
@@ -99,7 +99,7 @@
 bool OggPageHeader::setBaseHeader(const unsigned char* inBaseHeader) {
 	//This now does not delete the buffer
 	
-	unsigned long locOffset = 0;
+	//unsigned long locOffset = 0;  // unused
 
 	//Check if the page has the correct capture pattern
 	if (strncmp((const char*)inBaseHeader, "OggS", OGG_CAPTURE_PATTERN_SIZE) == 0) {
@@ -107,6 +107,7 @@
 		mHeaderFlags = inBaseHeader[HEADER_FLAGS];
 		mGranulePos = iLE_Math::CharArrToInt64(inBaseHeader + GRANULE_POS);
 		mStreamSerialNo = iLE_Math::charArrToULong(inBaseHeader + SERIAL_NO);
+		mPageSequenceNo = iLE_Math::charArrToULong(inBaseHeader + SEQUENCE_NO);
 		mCRCChecksum = iLE_Math::charArrToULong(inBaseHeader + OGG_CHECKSUM);
 		mNumPageSegments = inBaseHeader[NUM_SEGMENTS];
 		mHeaderSize = OGG_BASE_HEADER_SIZE + mNumPageSegments;



More information about the commits mailing list