fixup_sample should only fix loopstart if it is below sample start, not if they are equal.

Signed-off-by: Marcus Weseloh <marcus@weseloh.cc>
This commit is contained in:
Marcus Weseloh 2017-08-03 13:33:36 +02:00
parent 25e7eb0c6b
commit 2d5da02cd4

View file

@ -3179,7 +3179,7 @@ fixup_sample (SFData * sf)
return (OK);
}
else if (sam->loopend > sam->end || sam->loopstart >= sam->loopend
|| sam->loopstart <= sam->start)
|| sam->loopstart < sam->start)
{ /* loop is fowled?? (cluck cluck :) */
/* can pad loop by 8 samples and ensure at least 4 for loop (2*8+4) */
if ((sam->end - sam->start) >= 20)