[FFmpeg-cvslog] swr: replace /16 by >>4
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Tue Jun 12 07:32:38 CEST 2012
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?
More information about the ffmpeg-cvslog
mailing list