# HG changeset patch # User michael # Date 1098388892 0 # Node ID df3e4a8e6aacacbd3491a70a23af28a02404344e # Parent 072fc321fbe697d0b1f9e9be1d48e59607ad8926 100l (dont reset the sample position at the block end) diff -r 072fc321fbe6 -r df3e4a8e6aac resample2.c --- a/resample2.c Thu Oct 21 03:11:34 2004 +0000 +++ b/resample2.c Thu Oct 21 20:01:32 2004 +0000 @@ -223,7 +223,7 @@ } } *consumed= FFMAX(index, 0) >> c->phase_shift; - index= FFMIN(index, 0); + if(index>=0) index &= c->phase_mask; if(compensation_distance){ compensation_distance -= dst_index;