diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index ad83dfb199..c63be626ba 100644 --- a/libavcodec/shorten.c +++ b/libavcodec/shorten.c @@ -711,7 +711,7 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data, if (s->version < 2) s->offset[channel][s->nmean - 1] = sum / s->blocksize; else - s->offset[channel][s->nmean - 1] = s->bitshift == 32 ? 0 : (sum / s->blocksize) * (1 << s->bitshift); + s->offset[channel][s->nmean - 1] = s->bitshift == 32 ? 0 : (sum / s->blocksize) * (1LL << s->bitshift); } /* copy wrap samples for use with next block */