diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-05 18:30:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-05 18:32:34 +0200 |
commit | e8dd7928c893c3d76b09a67e2acccc2630b4b32b (patch) | |
tree | 4dc52285deed38d78eef48653750adfa8ac27ea0 /libswresample/audioconvert.c | |
parent | 3db6093244f46f580b2c1857179580e312b52954 (diff) | |
download | ffmpeg-e8dd7928c893c3d76b09a67e2acccc2630b4b32b.tar.gz |
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.c | 2 |
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) |