Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-05 20:30:17 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-05-05 20:32:34 +0400
commite8dd7928c893c3d76b09a67e2acccc2630b4b32b (patch)
tree4dc52285deed38d78eef48653750adfa8ac27ea0 /libswresample/audioconvert.c
parent3db6093244f46f580b2c1857179580e312b52954 (diff)
swr: change simd len argument to be in samples instead of dst bytes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/audioconvert.c')
-rw-r--r--libswresample/audioconvert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/audioconvert.c b/libswresample/audioconvert.c
index 1cdd80f810..04e33c511d 100644
--- a/libswresample/audioconvert.c
+++ b/libswresample/audioconvert.c
@@ -160,7 +160,7 @@ int swri_audio_convert(AudioConvert *ctx, AudioData *out, AudioData *in, int len
av_assert1(off>=0);
if(off>0)
for(ch=0; ch<planes; ch++){
- ctx->simd_f(out->ch+ch, in->ch+ch, off*os);
+ ctx->simd_f(out->ch+ch, in->ch+ch, off * (out->planar ? 1 :out->ch_count));
}
av_assert1(off<=len);
if(off == len)