shithub: sox

Download patch

ref: 8368c6f2d5b84b28533bc8715a5558db33a0d32f
parent: 1475a721510a272280bafb13fc649281d8e7b4e7
author: Ulrich Klauer <ulrich@chirlu.de>
date: Fri Sep 30 23:54:35 EDT 2011

Use full output bit-depth when dithering

--- a/src/formats.c
+++ b/src/formats.c
@@ -771,7 +771,7 @@
       ft->encoding.bits_per_sample = max_p_s;
     }
   }
-  ft->signal.precision = min(ft->signal.precision, sox_precision(ft->encoding.encoding, ft->encoding.bits_per_sample));
+  ft->signal.precision = sox_precision(ft->encoding.encoding, ft->encoding.bits_per_sample);
   #undef enc_arg
 }