Mercurial > mplayer.hg
changeset 24897:d4a8f31df9ba
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.
author | uau |
---|---|
date | Thu, 01 Nov 2007 06:52:41 +0000 |
parents | 8133163bd1dd |
children | 0701957d2bf7 |
files | libaf/af_scaletempo.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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) {