shithub: sox

Download patch

ref: 4d1529dd2d6af2632bcffa91dca29113422a489c
parent: f4562efd0aa3d490f13bf8599cacee963e6a8899
author: Rob Sykes <robs@users.sourceforge.net>
date: Thu Jan 10 00:59:35 EST 2013

fix truncation due to integer division (found by Michael Niedermayer)

--- a/src/dither.c
+++ b/src/dither.c
@@ -401,7 +401,7 @@
         default: assert(sox_false);
       }
       p->coefs = f->coefs;
-      mult = dB_to_linear(f->gain_cB / 10);
+      mult = dB_to_linear(f->gain_cB * 0.1);
     }
   }
   p->ranqd1 = ranqd1(sox_globals.ranqd1) + effp->flow;