shithub: sox

Download patch

ref: 184d25cd61f3a0f049bce39ec1c99930613e6e92
parent: ce8b321ce9a8c508ddeb2f2e1e23742fb881b86e
author: Rob Sykes <robs@users.sourceforge.net>
date: Sat Jul 28 10:33:01 EDT 2012

fix passing of floating point args to lsx_fail

--- a/src/rate.c
+++ b/src/rate.c
@@ -590,11 +590,11 @@
   if (!bw_3dB_pc && !p->bw_0dB_pc)
     p->bw_0dB_pc = quality == 1? LOW_Q_BW0_PC : 100 - 5 / TO_3dB(rej);
   else if (bw_3dB_pc && bw_3dB_pc < 85 && allow_aliasing) {
-    lsx_fail("minimum allowed 3dB bandwidth with aliasing is %g%%", 85);
+    lsx_fail("minimum allowed 3dB bandwidth with aliasing is %g%%", 85.);
     return SOX_EOF;
   }
   else if (p->bw_0dB_pc && p->bw_0dB_pc < 74 && allow_aliasing) {
-    lsx_fail("minimum allowed bandwidth with aliasing is %g%%", 74);
+    lsx_fail("minimum allowed bandwidth with aliasing is %g%%", 74.);
     return SOX_EOF;
   }
   if (bw_3dB_pc)