[FFmpeg-devel] [PATCH 2/2] avcodec/sbrdsp_fixed: Fix integer overflow
Carl Eugen Hoyos
ceffmpeg at gmail.com
Thu Nov 23 00:38:06 EET 2017
2017-11-22 21:00 GMT+01:00 Michael Niedermayer <michael at niedermayer.cc>:
> diff --git a/libavcodec/sbrdsp_fixed.c b/libavcodec/sbrdsp_fixed.c
> index a0ef6859f1..0db932a105 100644
> --- a/libavcodec/sbrdsp_fixed.c
> +++ b/libavcodec/sbrdsp_fixed.c
> @@ -133,7 +133,7 @@ static av_always_inline SoftFloat autocorr_calc(int64_t accu)
>
> round = 1U << (nz-1);
> mant = (int)((accu + round) >> nz);
> - mant = (mant + 0x40)>>7;
> + mant = (mant + 0x40ll)>>7;
LL?
Carl Eugen
More information about the ffmpeg-devel
mailing list