X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Ftakdec.c;h=8ec87ab50971141c67158536523f87effeafff67;hb=1e6cef686183288a50eb4e45265a3a7f7582b1b5;hp=4fb58255328358fd395abee3ed07c9640b724fd8;hpb=f1192736494a5b16717de66da4a3d3c6af0e9a7a;p=ffmpeg diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c index 4fb58255328..8ec87ab5097 100644 --- a/libavcodec/takdec.c +++ b/libavcodec/takdec.c @@ -176,8 +176,8 @@ static void set_sample_rate_params(AVCodecContext *avctx) } else { shift = 0; } - s->uval = FFALIGN(avctx->sample_rate + 511 >> 9, 4) << shift; - s->subframe_scale = FFALIGN(avctx->sample_rate + 511 >> 9, 4) << 1; + s->uval = FFALIGN(avctx->sample_rate + 511LL >> 9, 4) << shift; + s->subframe_scale = FFALIGN(avctx->sample_rate + 511LL >> 9, 4) << 1; } static av_cold int tak_decode_init(AVCodecContext *avctx)