[SCM] calf/master: + Framework: handle gridlines with absurd indices properly

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:08 UTC 2013


The following commit has been merged in the master branch:
commit 9357769efb985a07adb9ae92607ff5be6e8f8bbc
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Sun Jan 25 00:44:03 2009 +0000

    + Framework: handle gridlines with absurd indices properly

diff --git a/src/modules_dsp.cpp b/src/modules_dsp.cpp
index 2cdc390..a7e5387 100644
--- a/src/modules_dsp.cpp
+++ b/src/modules_dsp.cpp
@@ -95,6 +95,8 @@ static bool get_freq_gridline(int subindex, float &pos, bool &vertical, std::str
         }
         subindex -= 28;
     }
+    if (subindex >= 32)
+        return false;
     float gain = 16.0 / (1 << subindex);
     pos = dB_grid(gain);
     if (pos < -1)

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list