diff --git a/libavcodec/osq.c b/libavcodec/osq.c index 826b9f1454..6db25a3ffc 100644 --- a/libavcodec/osq.c +++ b/libavcodec/osq.c @@ -341,7 +341,7 @@ static int do_decode(AVCodecContext *avctx, AVFrame *frame, int decorrelate, int if (nb_channels == 2 && ch == 1) { if (decorrelate) - dst[n] += s->decode_buffer[0][OFFSET+n]; + dst[n] += (unsigned)s->decode_buffer[0][OFFSET+n]; } if (downsample)