diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c index 2250f29564..cfcf9a06c1 100644 --- a/libavcodec/apedec.c +++ b/libavcodec/apedec.c @@ -885,7 +885,7 @@ static av_always_inline int filter_3800(APEPredictor *p, p->coeffsB[filter][1] -= (((d4 >> 30) & 2) - 1) * sign; p->filterB[filter] = p->lastA[filter] + (predictionB >> shift); - p->filterA[filter] = p->filterB[filter] + ((int)(p->filterA[filter] * 31U) >> 5); + p->filterA[filter] = p->filterB[filter] + (unsigned)((int)(p->filterA[filter] * 31U) >> 5); return p->filterA[filter]; }