# HG changeset patch # User uau # Date 1193899961 0 # Node ID d4a8f31df9ba7f7e56ba6c5aa17395a8e4b3643b # Parent 8133163bd1ddc5ef75ea4505f36a7e22b6215b4b af_scaletempo: Fix audio copy position Because of a missing *num_channels factor the filter copied audio from an incorrect position. This mixed up the channel order and hurt audio quality even if the channels had identical content. diff -r 8133163bd1dd -r d4a8f31df9ba libaf/af_scaletempo.c --- a/libaf/af_scaletempo.c Thu Nov 01 06:52:38 2007 +0000 +++ b/libaf/af_scaletempo.c Thu Nov 01 06:52:41 2007 +0000 @@ -143,7 +143,7 @@ search_start += s->num_channels; } - return best_off * 4; + return best_off * 4 * s->num_channels; } int _best_overlap_offset_s16(af_scaletempo_t* s) { @@ -175,7 +175,7 @@ search_start += s->num_channels; } - return best_off * 2; + return best_off * 2 * s->num_channels; } void _output_overlap_float(af_scaletempo_t* s, int8_t* buf_out, int bytes_off) {