From b1f7e6d9a000e61c889c4c017d6e3465c682f96c Mon Sep 17 00:00:00 2001 From: Marcus Weseloh Date: Sun, 18 Mar 2018 14:48:32 +0100 Subject: [PATCH] Bugfix: don't bail out early if single sample has invalid start or end --- src/sfloader/fluid_defsfont.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sfloader/fluid_defsfont.c b/src/sfloader/fluid_defsfont.c index c21e6d8f..a2c25854 100644 --- a/src/sfloader/fluid_defsfont.c +++ b/src/sfloader/fluid_defsfont.c @@ -3389,9 +3389,11 @@ fixup_sample (SFData * sf) /* disable sample by setting all sample markers to 0 */ sam->start = sam->end = sam->loopstart = sam->loopend = 0; - return (OK); + p = fluid_list_next (p); + continue; } - else if (sam->sampletype & FLUID_SAMPLETYPE_OGG_VORBIS) + + if (sam->sampletype & FLUID_SAMPLETYPE_OGG_VORBIS) { /* * compressed samples get fixed up after decompression