]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/sbrdsp_fixed.c
avcodec/hevcdsp_template: Fix undefined shift in put_hevc_qpel_bi_w_hv()
[ffmpeg] / libavcodec / sbrdsp_fixed.c
index a0ef6859f1a7166e6e1321485971523ac86fc611..57d98da97997f3f0b743963c57e97a9b019d1d6e 100644 (file)
@@ -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);