X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fsbrdsp_fixed.c;h=57d98da97997f3f0b743963c57e97a9b019d1d6e;hb=439fbb9c8b2a90e97c44c7c57245e01ca84c865d;hp=a0ef6859f1a7166e6e1321485971523ac86fc611;hpb=507e3f7d26ce7ad75ff146748ae285a8dee3b924;p=ffmpeg diff --git a/libavcodec/sbrdsp_fixed.c b/libavcodec/sbrdsp_fixed.c index a0ef6859f1a..57d98da9799 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; mant *= 64; expo = nz + 15; return av_int2sf(mant, 30 - expo);