X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fhq_hqadsp.c;h=1b9f138c726b63c7e4258943426ee59903c4c8fd;hb=930fe4b1f75d4176a7226fccdcbd6c68b816a1b7;hp=db1ea2e2462180daf894ea9e9bc06bf2036e4fdd;hpb=06aafda03f1c097c9ff0c669eb456e86043451e2;p=ffmpeg diff --git a/libavcodec/hq_hqadsp.c b/libavcodec/hq_hqadsp.c index db1ea2e2462..1b9f138c726 100644 --- a/libavcodec/hq_hqadsp.c +++ b/libavcodec/hq_hqadsp.c @@ -30,7 +30,7 @@ #define FIX_1_414 23170 #define FIX_2_613 21407 // divided by two to fit the range -#define IDCTMUL(a, b) ((a) * (b) >> 16) +#define IDCTMUL(a, b) ((int)((a) * (unsigned)(b)) >> 16) static inline void idct_row(int16_t *blk) {