[matroska] r988 - trunk/DvdMenuXtractor

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2004-12-28 21:08:28 +0300 (Tue, 28 Dec 2004)
New Revision: 988

Modified:
   trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
   trunk/DvdMenuXtractor/IFOFile.cpp
Log:
DMX: fix a bug for MPA, LPCM and DTS handling/allow still frames support (experimental)

Modified: trunk/DvdMenuXtractor/DvdMenuXtractor.cpp
===================================================================
--- trunk/DvdMenuXtractor/DvdMenuXtractor.cpp	2004-12-28 09:39:23 UTC (rev 987)
+++ trunk/DvdMenuXtractor/DvdMenuXtractor.cpp	2004-12-28 18:08:28 UTC (rev 988)
@@ -622,7 +622,7 @@
 
 					case 2:
 					case 3:
-						_muxer = new MPADemuxWriter(outputDirectory + outputDirectory+newFilename+_langName, 0xC0 + _ID);
+						_muxer = new MPADemuxWriter(outputDirectory + newFilename+_langName, 0xC0 + _ID);
 						if (!demuxer.AddDemuxer(AUDIO_STREAM + _ID, _muxer))
 							delete _muxer;
 						else
@@ -631,7 +631,7 @@
 
 					case 4:
 						// TODO possibly other LPCM formats ?
-						_muxer = new LPCMDemuxWriter(outputDirectory + outputDirectory+newFilename+_langName, 0xA0 + _ID, 48000, 16, 2);
+						_muxer = new LPCMDemuxWriter(outputDirectory + newFilename+_langName, 0xA0 + _ID, 48000, 16, 2);
 						if (!demuxer.AddDemuxer(SUBSTREAM_PCM_LOW + _ID, _muxer))
 							delete _muxer;
 						else
@@ -639,7 +639,7 @@
 						break;
 
 					case 6:
-						_muxer = new DTSDemuxWriter(outputDirectory + outputDirectory+newFilename+_langName, 0x88 + _ID);
+						_muxer = new DTSDemuxWriter(outputDirectory + newFilename+_langName, 0x88 + _ID);
 						if (!demuxer.AddDemuxer(SUBSTREAM_DTS_LOW + _ID, _muxer))
 							delete _muxer;
 						else

Modified: trunk/DvdMenuXtractor/IFOFile.cpp
===================================================================
--- trunk/DvdMenuXtractor/IFOFile.cpp	2004-12-28 09:39:23 UTC (rev 987)
+++ trunk/DvdMenuXtractor/IFOFile.cpp	2004-12-28 18:08:28 UTC (rev 988)
@@ -237,7 +237,8 @@
 				cle->isStill = (srp.pgc->cell_playback[k].still_time > 0);
 				if (cle->isStill)
 				{
-// _todo_ Still should be optional					cle->frame_dur = srp.pgc->cell_playback[k].still_time * 1000.0 / cle->nb_frames;
+// _todo_ Still should be optional 
+					cle->frame_dur = srp.pgc->cell_playback[k].still_time * 1000.0 / cle->nb_frames;
 				}
 				cle->first_sector = srp.pgc->cell_playback[k].first_sector;
 			}
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.