[matroska] r971 - trunk/DvdMenuXtractor

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2004-12-13 17:01:25 +0300 (Mon, 13 Dec 2004)
New Revision: 971

Modified:
   trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
Log:
maybe the Range has to be within a 16 bits integer ?

Modified: trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
===================================================================
--- trunk/DvdMenuXtractor/DvdMenuXtractor.cpp	2004-12-13 06:25:04 UTC (rev 970)
+++ trunk/DvdMenuXtractor/DvdMenuXtractor.cpp	2004-12-13 14:01:25 UTC (rev 971)
@@ -650,10 +650,10 @@
 			}
 
 			m_gaDemuxProgress->SetValue(0);
-			m_gaDemuxProgress->SetRange(aVobParser.GetPacketCount());
+			m_gaDemuxProgress->SetRange(aVobParser.GetPacketCount() >> 2);
             while(aVobParser.ParseNextPacket(*IfoFile))
             {
-				m_gaDemuxProgress->SetValue(aVobParser.GetPacketIndex());
+				m_gaDemuxProgress->SetValue(aVobParser.GetPacketIndex() >> 2);
                 wxYield();
             }
 			m_txtDemuxLog->AppendText("Done demuxing\n");
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.