shithub: dumb

Download patch

ref: d02aa3a3a3ab05acf6908411f8ecfcb46bf06f73
parent: da229930ce0f698c7443ae693e593d582748822f
author: Chris Moeller <kode54@gmail.com>
date: Mon Jan 11 04:01:37 EST 2010

{5/3/2009 5:29:28 PM}Underflow fix.

git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C262

--- a/dumb/src/helpers/resamp3.inc
+++ b/dumb/src/helpers/resamp3.inc
@@ -58,7 +58,7 @@
 
 	done = 0;
 	dt = (int)(delta * 65536.0 + 0.5);
-	if (dt == 0) return 0;
+	if (dt == 0 || dt == 0x80000000) return 0;
 	SET_VOLUME_VARIABLES;
 
 	if (VOLUMES_ARE_ZERO) dst = NULL;