[FFmpeg-cvslog] swr: replace /16 by >>4

Michael Niedermayer git at videolan.org
Tue Jun 12 04:27:22 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 12 03:08:02 2012 +0200| [4289b6690d7af672e6c8b6e43e965337959a7a66] | committer: Michael Niedermayer

swr: replace /16 by >>4

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4289b6690d7af672e6c8b6e43e965337959a7a66
---

 libswresample/audioconvert.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswresample/audioconvert.c b/libswresample/audioconvert.c
index c531356..3663bb1 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/16 * 16;
+        off = (len>>4)<<4;
         av_assert1(off>=0);
         av_assert1(off<=len);
         if(off>0){



More information about the ffmpeg-cvslog mailing list