[xiph-commits] r8802 - trunk/oggdsf/src/lib/core/directshow/dsfAnxMux

illiminable at motherfish-iii.xiph.org illiminable at motherfish-iii.xiph.org
Fri Jan 28 22:41:36 PST 2005


Author: illiminable
Date: 2005-01-28 22:41:32 -0800 (Fri, 28 Jan 2005)
New Revision: 8802

Modified:
   trunk/oggdsf/src/lib/core/directshow/dsfAnxMux/AnxPageInterleaver.cpp
Log:
* Add the empty to packet to annodex EOS

Modified: trunk/oggdsf/src/lib/core/directshow/dsfAnxMux/AnxPageInterleaver.cpp
===================================================================
--- trunk/oggdsf/src/lib/core/directshow/dsfAnxMux/AnxPageInterleaver.cpp	2005-01-28 14:31:53 UTC (rev 8801)
+++ trunk/oggdsf/src/lib/core/directshow/dsfAnxMux/AnxPageInterleaver.cpp	2005-01-29 06:41:32 UTC (rev 8802)
@@ -93,8 +93,22 @@
 
 	locEOSPage->header()->setStreamSerialNo(mAnxSerialNo);
 	locEOSPage->header()->setHeaderFlags(4);
-	locEOSPage->header()->setHeaderSize(27);
+	
 
+	StampedOggPacket* locDudPacket = new StampedOggPacket(NULL, 0, false, false, 0, 0, StampedOggPacket::OGG_BOTH);
+
+	locEOSPage->header()->setNumPageSegments(1);
+	unsigned char* locSegTable = new unsigned char[1];
+
+	locSegTable[0] = 0;
+	
+	
+	locEOSPage->header()->setSegmentTable(locSegTable, 1);
+	locEOSPage->header()->setHeaderSize(28);
+	locEOSPage->header()->setDataSize(0);
+	
+	locEOSPage->addPacket(locDudPacket);
+
 	AnxPacketMaker::setChecksum(locEOSPage);
 	mBytesWritten += locEOSPage->pageSize();
 	mFileWriter->acceptOggPage(locEOSPage);



More information about the commits mailing list