diff --git a/libavcodec/pixlet.c b/libavcodec/pixlet.c index d031305155..ccfd267557 100644 --- a/libavcodec/pixlet.c +++ b/libavcodec/pixlet.c @@ -256,7 +256,7 @@ static int read_high_coeffs(AVCodecContext *avctx, uint8_t *src, int16_t *dst, i j = 0; dst += stride; } - state += (int64_t)d * yflag - (d * state >> 8); + state += (int64_t)d * yflag - ((int64_t)(d * (uint64_t)state) >> 8); flag = 0;