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

ozone at motherfish-iii.xiph.org ozone at motherfish-iii.xiph.org
Sun Jan 2 22:36:22 PST 2005


Author: ozone
Date: 2005-01-02 22:36:22 -0800 (Sun, 02 Jan 2005)
New Revision: 8590

Modified:
   trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggPageHeader.cpp
Log:
oggdsf:
 * Packet dumps now display Ogg page header flags in a more human-friendly fashion


Modified: trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggPageHeader.cpp
===================================================================
--- trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggPageHeader.cpp	2005-01-03 06:23:27 UTC (rev 8589)
+++ trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggPageHeader.cpp	2005-01-03 06:36:22 UTC (rev 8590)
@@ -340,7 +340,19 @@
 string OggPageHeader::toString() {
 
 	string retStr =	"Ver No      : " + StringHelper::numToString((unsigned int)mStructureVersion) + "\n";
-	retStr +=		"Head Flags  : " + StringHelper::numToString((unsigned int)mHeaderFlags) +"\n";
+	
+	retStr +=		"Head Flags  :";
+	if ((mHeaderFlags & CONTINUATION) != 0) {
+		retStr += " continuation";
+	}
+	if ((mHeaderFlags & BOS) != 0) {
+		retStr += " bos";
+	}
+	if ((mHeaderFlags & EOS) != 0) {
+		retStr += " eos";
+	}
+	retStr += "\n";
+
 	retStr +=		"Granule Pos : " + StringHelper::numToString(mGranulePos) + "\n";
 	retStr +=		"Serial No   : " + StringHelper::numToString(mStreamSerialNo) + "\n";
 	retStr +=		"Seq No      : " + StringHelper::numToString(mPageSequenceNo) + "\n";



More information about the commits mailing list