diff --git a/libavcodec/qoadec.c b/libavcodec/qoadec.c index 75099d1199..c5cf351f9c 100644 --- a/libavcodec/qoadec.c +++ b/libavcodec/qoadec.c @@ -67,7 +67,7 @@ static int qoa_lms_predict(QOAChannel *lms) { int prediction = 0; for (int i = 0; i < QOA_LMS_LEN; i++) - prediction += lms->weights[i] * lms->history[i]; + prediction += (unsigned)lms->weights[i] * lms->history[i]; return prediction >> 13; }