[SCM] meterbridge/master: Fix a typo in the IEC scale function which makes the range between -60db and -50db not continuous.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Fri Jun 15 07:47:21 UTC 2012


The following commit has been merged in the master branch:
commit d53ccdf1bda1dc5f1160027245d518e0ba42a216
Author: Alessio Treglia <alessio at debian.org>
Date:   Fri Jun 15 09:35:47 2012 +0200

    Fix a typo in the IEC scale function which makes the range between
    -60db and -50db not continuous.
    
    Thanks: Robin Gareus for the report and patch.
    Closes: #677547

diff --git a/debian/patches/meterbridge_0.9.2_iec_fix.patch b/debian/patches/meterbridge_0.9.2_iec_fix.patch
new file mode 100644
index 0000000..3adc351
--- /dev/null
+++ b/debian/patches/meterbridge_0.9.2_iec_fix.patch
@@ -0,0 +1,20 @@
+Subject: peak-meter scaling according to IEC-268-18 is misimplemented
+Bug-Lad:
+ http://lists.linuxaudio.org/pipermail/linux-audio-dev/2012-June/033486.html
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677547
+Author: Robin Gareus <robin at gareus.org>
+---
+ src/dpm_meters.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- meterbridge.orig/src/dpm_meters.c
++++ meterbridge/src/dpm_meters.c
+@@ -33,7 +33,7 @@ int iec_scale(float db) {
+          } else if (db < -60.0f) {
+                  def = (db + 70.0f) * 0.25f;
+          } else if (db < -50.0f) {
+-                 def = (db + 60.0f) * 0.5f + 5.0f;
++                 def = (db + 60.0f) * 0.5f + 2.5f;
+          } else if (db < -40.0f) {
+                  def = (db + 50.0f) * 0.75f + 7.5;
+          } else if (db < -30.0f) {
diff --git a/debian/patches/series b/debian/patches/series
index 092cfdd..583b592 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 main.h.patch
 binutils_gold.patch
+meterbridge_0.9.2_iec_fix.patch

-- 
meterbridge packaging



More information about the pkg-multimedia-commits mailing list