[matroska] r915 - trunk/DvdMenuXtractor

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2004-10-25 16:06:40 +0400 (Mon, 25 Oct 2004)
New Revision: 915

Modified:
   trunk/DvdMenuXtractor/VobParser.cpp
Log:
debug: check the timecodes of audio/video/sub streams to try to locate the delay for each stream

Modified: trunk/DvdMenuXtractor/VobParser.cpp
===================================================================
--- trunk/DvdMenuXtractor/VobParser.cpp	2004-10-24 14:06:51 UTC (rev 914)
+++ trunk/DvdMenuXtractor/VobParser.cpp	2004-10-25 12:06:40 UTC (rev 915)
@@ -45,6 +45,8 @@
 // Logging
 // ----------------------------------------------------------------------------
 
+extern "C" void myfprintf(FILE * f, const char * format, ...);
+
 #define INDENT_UNIT 2
 unsigned int indent_lvl = 0;
 unsigned int indent_off = 0;
@@ -609,6 +611,8 @@
 	ParsePESHeaderDataContentFlag();
 	ParsePESHeaderData();
 
+myfprintf(stdout, "vid: %I64d %I64d",pktinfo.pts,pktinfo.dts);
+
 	if(m_demuxer)
 	{	
 		m_demuxer->ProcessVideoStream(&m_buff[m_index],
@@ -622,6 +626,8 @@
 	ParsePESHeaderDataContentFlag();
 	ParsePESHeaderData();
 
+myfprintf(stdout, "aud: %I64d %I64d",pktinfo.pts,pktinfo.dts);
+
 	if(m_demuxer)
 	{	
 		m_demuxer->ProcessAudioStream(&m_buff[m_index],
@@ -643,6 +649,8 @@
 	if(substreamID >= SUBSTREAM_SUB_LOW && substreamID < SUBSTREAM_SUB_HIGH)
 	{
 		DebugLog("Subtitles streamID = 0x%X\n", substreamID);
+myfprintf(stdout, "sub: %I64d %I64d",pktinfo.pts,pktinfo.dts);
+
 		if(m_demuxer)
 		{
 			uint16_t subDataLen = length - (m_index - dataStartIndex);
@@ -651,6 +659,8 @@
 	}
 	else if(substreamID >= SUBSTREAM_AC3_LOW && substreamID < SUBSTREAM_AC3_HIGH)
 	{
+myfprintf(stdout, "ac3: %I64d %I64d",pktinfo.pts,pktinfo.dts);
+
 		DebugLog("AC3 streamID = 0x%X\n", substreamID);
 		// Skip frame header number
 		SkipNBytes(1);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.