summaryrefslogtreecommitdiff
path: root/libswresample/audioconvert.c
diff options
context:
space:
mode:
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 3663bb17c8..e4c84cae44 100644
--- a/libswresample/audioconvert.c
+++ b/libswresample/audioconvert.c
@@ -175,7 +175,7 @@ int swri_audio_convert(AudioConvert *ctx, AudioData *out, AudioData *in, int len
//FIXME optimize common cases
if(ctx->simd_f && !ctx->ch_map){
- off = (len>>4)<<4;
+ off = len&~15;
av_assert1(off>=0);
av_assert1(off<=len);
if(off>0){