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

Michael Niedermayer michaelni at gmx.at
Tue Jun 12 10:31:59 CEST 2012


On Tue, Jun 12, 2012 at 07:32:38AM +0200, Reimar Döffinger wrote:
> 
> 
> On 12 Jun 2012, at 04:27, git at videolan.org (Michael Niedermayer) wrote:
> 
> > 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;
> 
> Hm, why not & ~15?

locally fixed

thx

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-cvslog/attachments/20120612/52660f5c/attachment.asc>


More information about the ffmpeg-cvslog mailing list