Commit 5027e3da authored by Michael Niedermayer's avatar Michael Niedermayer

swr: fix buf_set() so it works with input == output

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bdbfd456
......@@ -394,7 +394,7 @@ static void buf_set(AudioData *out, AudioData *in, int count){
for(ch=0; ch<out->ch_count; ch++)
out->ch[ch]= in->ch[ch] + count*out->bps;
}else{
for(ch=0; ch<out->ch_count; ch++)
for(ch=out->ch_count-1; ch>=0; ch--)
out->ch[ch]= in->ch[0] + (ch + count*out->ch_count) * out->bps;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment