summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-06-21 21:59:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-06-21 22:02:42 +0900
commit1b0b9f6271e8819932af07651760484fcd909e14 (patch)
treea3db995ac7ff6e06bf9e8d19526417af85090cae
parent212899926bf7aa754b26273d650ffce9f6f6962c (diff)
downloadarts-1b0b9f6271e8819932af07651760484fcd909e14.tar.gz
arts-1b0b9f6271e8819932af07651760484fcd909e14.zip
Fixed for bug 2845. This is a bit of a quick-n-dirty patch.
The assertion looks for extremely small generated values and crash if found one. Removing the assertions seems to cause no arm and audio files of various format play fines. Moreover the problem seems to have completely disappered in recent Debian distros, for example it was reproducable in Stretch but no more in Buster. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 5d9981995e34d44da2a1b236de4a7594fbe183a8)
-rw-r--r--flow/gsl/gslwaveosc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/flow/gsl/gslwaveosc.c b/flow/gsl/gslwaveosc.c
index 7398904..15038f4 100644
--- a/flow/gsl/gslwaveosc.c
+++ b/flow/gsl/gslwaveosc.c
@@ -219,7 +219,6 @@ gsl_wave_osc_process (GslWaveOscData *wosc,
}
}
g_assert (!GSL_DOUBLE_IS_NANINF (wosc->y[0]));
- g_assert (!GSL_DOUBLE_IS_SUBNORMAL (wosc->y[0]));
wosc->done = (wosc->block.is_silent && /* FIXME, let filter state run out? */
((wosc->block.play_dir < 0 && wosc->block.offset < 0) ||