[matroska] r801 - trunk/DvdMenuXtractor
[email protected] Tue, 14 Sep 2004 15:04:22 +0400 (MSD)
Newsgroups
gmane.comp.multimedia.matroska.cvs
Message-ID
<[email protected] >
Author: robux4
Date: 2004-09-14 15:04:22 +0400 (Tue, 14 Sep 2004)
New Revision: 801
Modified:
trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
Log:
store the prohibited operations of the PGC
Modified: trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
===================================================================
--- trunk/DvdMenuXtractor/DvdMenuXtractor.cpp 2004-09-13 19:24:13 UTC (rev 800)
+++ trunk/DvdMenuXtractor/DvdMenuXtractor.cpp 2004-09-14 11:04:22 UTC (rev 801)
@@ -930,7 +930,7 @@
uint64_t OutputPGC(int lvl, wxTextFile & XmlFile, const pgc_t * pgc, uint64_t start_time, uint16_t pgc_num, unsigned char pgc_type)
{
- static unsigned char _PrivatePGC[] = {0x20, 0x00, 0x00, 0x00};
+ static unsigned char _PrivatePGC[] = {0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
uint64_t st_time = start_time, end_time;
lvl++;
@@ -938,8 +938,12 @@
XmlFile.AddLine(IndentString(lvl)+"<ChapterUID>"+_myUID+"</ChapterUID>");
_PrivatePGC[1] = (pgc_num+1) >> 8;
_PrivatePGC[2] = (pgc_num+1) & 0xFF;
- _PrivatePGC[3] = pgc_type;
- XmlFile.AddLine(IndentString(lvl)+"<ChapterProcessPrivate>"+encodebase64(_PrivatePGC,4)+"</ChapterProcessPrivate>");
+ _PrivatePGC[3] = pgc_type;
+ _PrivatePGC[4] = ((uint8_t*) &pgc->prohibited_ops)[0];
+ _PrivatePGC[5] = ((uint8_t*) &pgc->prohibited_ops)[1];
+ _PrivatePGC[6] = ((uint8_t*) &pgc->prohibited_ops)[2];
+ _PrivatePGC[7] = ((uint8_t*) &pgc->prohibited_ops)[3];
+ XmlFile.AddLine(IndentString(lvl)+"<ChapterProcessPrivate>"+encodebase64(_PrivatePGC,8)+"</ChapterProcessPrivate>");
// display the UID for the lazy rippers
XmlFile.AddLine(IndentString(lvl)+"<ChapterDisplay>");
lvl++;