diff src/modplug/modplug.cxx @ 1051:0f2f68b9c98c trunk

[svn] dnl CD-Audio New Generation; you need to add cdaudio-ng to INPUT_PLUGINS if CDIO_LIBS is set. Or something like that. Good luck.
author chainsaw
date Mon, 21 May 2007 16:32:42 -0700
parents 6b5a52635b3b
children 61723217c8cc
line wrap: on
line diff
--- a/src/modplug/modplug.cxx	Mon May 21 16:18:14 2007 -0700
+++ b/src/modplug/modplug.cxx	Mon May 21 16:32:42 2007 -0700
@@ -251,8 +251,8 @@
 	int maxtime = file->mSoundFile.GetSongTime() * 1000;
 	float postime;
 
-	if(millisecond > maxtime)
-		millisecond = maxtime;
+	if(millisecond >= maxtime)
+		millisecond = maxtime - 3000;
 	maxpos = file->mSoundFile.GetMaxPosition();
 	postime = (float)maxpos / (float)maxtime;