[matroska] r811 - trunk/DvdMenuXtractor
| Newsgroups | gmane.comp.multimedia.matroska.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: robux4
Date: 2004-09-15 17:51:44 +0400 (Wed, 15 Sep 2004)
New Revision: 811
Modified:
trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
Log:
spec: the PTT number is on 1 octet
Modified: trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
===================================================================
--- trunk/DvdMenuXtractor/DvdMenuXtractor.cpp 2004-09-15 13:42:25 UTC (rev 810)
+++ trunk/DvdMenuXtractor/DvdMenuXtractor.cpp 2004-09-15 13:51:44 UTC (rev 811)
@@ -882,7 +882,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, 0x00, 0x00, 0x00, 0x00};
- static unsigned char _PrivatePTT[] = {0x18, 0x00, 0x00};
+ static unsigned char _PrivatePTT[] = {0x18, 0x00};
uint64_t st_time = start_time, end_time;
XmlFile.AddLine(IndentString(lvl)+"<ChapterAtom>");
@@ -913,9 +913,8 @@
lvl++;
wxString _myUIDa = CreateUID();
XmlFile.AddLine(IndentString(lvl)+"<ChapterUID>"+_myUIDa+"</ChapterUID>");
- _PrivatePTT[1] = (pgc_num+1) >> 8;
- _PrivatePTT[2] = (pgc_num+1) & 0xFF;
- XmlFile.AddLine(IndentString(lvl)+"<ChapterProcessPrivate>"+encodebase64(_PrivatePTT,3)+"</ChapterProcessPrivate>");
+ _PrivatePTT[1] = (pgc_num+1) & 0xFF;
+ XmlFile.AddLine(IndentString(lvl)+"<ChapterProcessPrivate>"+encodebase64(_PrivatePTT,2)+"</ChapterProcessPrivate>");
// display the UID for the lazy rippers
XmlFile.AddLine(IndentString(lvl)+"<ChapterDisplay>");
lvl++;