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.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24925 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
uau 2007-11-01 06:52:41 +00:00
parent d33703496c
commit ff1568af58
1 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ int _best_overlap_offset_float(af_scaletempo_t* s) {
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 @@ int _best_overlap_offset_s16(af_scaletempo_t* s) {
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) {