mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 00:06:25 +01:00
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:
parent
d33703496c
commit
ff1568af58
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user