Author: robux4
Date: 2005-04-11 12:44:38 +0400 (Mon, 11 Apr 2005)
New Revision: 1126
Modified:
trunk/DvdMenuXtractor/VobParser.cpp
Log:
DMX: warn if the data found in the .VOB exceed the ones indicated in the cell
Modified: trunk/DvdMenuXtractor/VobParser.cpp
===================================================================
--- trunk/DvdMenuXtractor/VobParser.cpp 2005-04-10 17:36:45 UTC (rev 1125)
+++ trunk/DvdMenuXtractor/VobParser.cpp 2005-04-11 08:44:38 UTC (rev 1126)
@@ -979,7 +979,11 @@
fprintf(m_TimecodeFile, "gap,%lf\n", (m_end_timecode - m_last_end_timecode) / 1000.0);
}
else
- fprintf(m_TimecodeFile, "\n%lf\n", (m_end_timecode - m_start_timecode) / 1000.0);
+ {
+ if (m_last_end_timecode > m_end_timecode)
+ wxLogWarning("There is more video that indicated in the cell.");
+ fprintf(m_TimecodeFile, "\n%lf\n", (m_last_end_timecode - m_start_timecode) / 1000.0);
+ }
}
m_start_timecode = start_timecode;
@@ -1004,7 +1008,11 @@
else
{
if (m_end_timecode != 0)
- fprintf(m_TimecodeFile, "%lf\n", (m_end_timecode - m_start_timecode) / 1000.0);
+ {
+ if (m_last_end_timecode > m_end_timecode)
+ wxLogWarning("There is more AC3 audio that indicated in the cell.");
+ fprintf(m_TimecodeFile, "%lf\n", (m_last_end_timecode - m_start_timecode) / 1000.0);
+ }
}
m_start_timecode = start_timecode;
@@ -1029,7 +1037,11 @@
else
{
if (m_end_timecode != 0)
- fprintf(m_TimecodeFile, "%lf\n", (m_end_timecode - m_start_timecode) / 1000.0);
+ {
+ if (m_last_end_timecode > m_end_timecode)
+ wxLogWarning("There is more DTS audio that indicated in the cell.");
+ fprintf(m_TimecodeFile, "%lf\n", (m_last_end_timecode - m_start_timecode) / 1000.0);
+ }
}
m_start_timecode = start_timecode;
@@ -1054,7 +1066,11 @@
else
{
if (m_end_timecode != 0)
- fprintf(m_TimecodeFile, "%lf\n", (m_end_timecode - m_start_timecode) / 1000.0);
+ {
+ if (m_last_end_timecode > m_end_timecode)
+ wxLogWarning("There is more PCM audio that indicated in the cell.");
+ fprintf(m_TimecodeFile, "%lf\n", (m_last_end_timecode - m_start_timecode) / 1000.0);
+ }
}
m_start_timecode = start_timecode;
@@ -1090,7 +1106,11 @@
else
{
if (m_end_timecode != 0)
- fprintf(m_TimecodeFile, "%lf\n", (m_end_timecode - m_start_timecode) / 1000.0);
+ {
+ if (m_last_end_timecode > m_end_timecode)
+ wxLogWarning("There is more Button data that indicated in the cell.");
+ fprintf(m_TimecodeFile, "%lf\n", (m_last_end_timecode - m_start_timecode) / 1000.0);
+ }
}
m_start_timecode = start_timecode;
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.