shithub: dumb

Download patch

ref: 4f9a59e413f0cf404b136a7a1696968ecddd8372
parent: 3be9ce486cf67827f18346b54d83478d487abd40
author: Chris Moeller <[email protected]>
date: Mon Jan 11 04:00:25 EST 2010

{11/29/2006 5:59:20 AM}2006-11-01 00:50 UTC - kode54
- Resamplers now return immediately if the fixed point delta is zero.

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

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