swr: use &~15
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 12 Jun 2012 08:28:40 +0000 (10:28 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 12 Jun 2012 08:28:40 +0000 (10:28 +0200)
Idea-by: reimar (and ubitux on IRC)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/audioconvert.c

index 3663bb1..e4c84ca 100644 (file)
@@ -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){