[xiph-commits] r9097 - trunk/oggdsf/src/lib/helper/libAnxHelper

ozone at motherfish-iii.xiph.org ozone at motherfish-iii.xiph.org
Mon Mar 28 19:04:26 PST 2005


Author: ozone
Date: 2005-03-28 19:04:24 -0800 (Mon, 28 Mar 2005)
New Revision: 9097

Modified:
   trunk/oggdsf/src/lib/helper/libAnxHelper/FishSkeleton.cpp
Log:
oggcodecs:
 * Output a proper CMML v3 BOS packet (it was missing the CMML granuleshift field)


Modified: trunk/oggdsf/src/lib/helper/libAnxHelper/FishSkeleton.cpp
===================================================================
--- trunk/oggdsf/src/lib/helper/libAnxHelper/FishSkeleton.cpp	2005-03-27 15:03:08 UTC (rev 9096)
+++ trunk/oggdsf/src/lib/helper/libAnxHelper/FishSkeleton.cpp	2005-03-29 03:04:24 UTC (rev 9097)
@@ -153,7 +153,7 @@
 
 StampedOggPacket* FishSkeleton::makeCMMLBOS()
 {
-	const unsigned short CMML_BOS_SIZE = 28;
+	const unsigned short CMML_BOS_SIZE = 29;
 	unsigned char* locPackBuff = new unsigned char[CMML_BOS_SIZE];
 	locPackBuff[0] = 'C';
 	locPackBuff[1] = 'M';
@@ -171,9 +171,8 @@
 	iLE_Math::Int64ToCharArr(locInt64, locPackBuff + 12);
 	locInt64 = 1;
 	iLE_Math::Int64ToCharArr(locInt64, locPackBuff + 20);
+	locPackBuff[28] = 0;  // Granule shift
 
-
-
 	StampedOggPacket* locPacket = new StampedOggPacket(locPackBuff, CMML_BOS_SIZE, false, false, 0, 0, StampedOggPacket::OGG_BOTH);
 	return locPacket;
 }



More information about the commits mailing list