[SCM] swh-plugins/master: Add patch to fix analoqueOsc.

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Tue May 31 14:08:59 UTC 2016


The following commit has been merged in the master branch:
commit 47fa2fc6a26b0bf92cf3dec6ed2fb7e5905025d3
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Tue May 31 15:52:25 2016 +0200

    Add patch to fix analoqueOsc.

diff --git a/debian/patches/07-fix_analogueOsc.patch b/debian/patches/07-fix_analogueOsc.patch
new file mode 100644
index 0000000..0c3f13e
--- /dev/null
+++ b/debian/patches/07-fix_analogueOsc.patch
@@ -0,0 +1,18 @@
+Description: Fix analogueOsc plugin to not produces NaN under some conditions.
+Author: Frank Heckenbach <f.heckenbach at fh-soft.de> 
+Forwarded: no
+
+
+Index: swh-plugins/analogue_osc_1416.xml
+===================================================================
+--- swh-plugins.orig/analogue_osc_1416.xml
++++ swh-plugins/analogue_osc_1416.xml
+@@ -62,7 +62,7 @@
+ 	y = (x - q) / (1.0f - f_exp(-1.2f * (x - q))) +
+               q / (1.0f - f_exp(1.2f * q));
+ 	/* Catch the case where x ~= q */
+-	if (fabs(y) > 1.0f) {
++	if (isnan(y) || fabs(y) > 1.0f) {
+ 		y = 0.83333f + q / (1.0f - f_exp(1.2f * q));
+ 	}
+ 	otm2 = otm1;
diff --git a/debian/patches/series b/debian/patches/series
index e51104c..831559d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 #04-nosetlocale.diff
 #05-mbeq_crash_fix.diff
 06-build_reproducible.patch
+07-fix_analogueOsc.patch

-- 
swh-plugins packaging



More information about the pkg-multimedia-commits mailing list