summaryrefslogtreecommitdiffstats
path: root/libaf
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-01 06:52:41 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-01 06:52:41 +0000
commitff1568af58598b4b0a2463981fa8da2dce348a79 (patch)
tree8199fea46fe4d03b146ed86e743fc6aefce3f716 /libaf
parentd33703496cb65e9e1c23c4076c674c8d8623f738 (diff)
downloadmpv-ff1568af58598b4b0a2463981fa8da2dce348a79.tar.bz2
mpv-ff1568af58598b4b0a2463981fa8da2dce348a79.tar.xz
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
Diffstat (limited to 'libaf')
-rw-r--r--libaf/af_scaletempo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libaf/af_scaletempo.c b/libaf/af_scaletempo.c
index bc2cdba157..b25e8413e8 100644
--- a/libaf/af_scaletempo.c
+++ b/libaf/af_scaletempo.c
@@ -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) {