[FFmpeg-cvslog] swr: fix buf_set() so it works with input == output
Michael Niedermayer
git at videolan.org
Sat May 19 19:28:56 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 19 17:45:41 2012 +0200| [5027e3daf7b6046f3ced310fecf642dddc0b45b9] | committer: Michael Niedermayer
swr: fix buf_set() so it works with input == output
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5027e3daf7b6046f3ced310fecf642dddc0b45b9
---
libswresample/swresample.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index dbc502f..619c83e 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -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;
}
}
More information about the ffmpeg-cvslog
mailing list