diff --git a/libavcodec/aac.c b/libavcodec/aac.c index 12037e0339..504f987492 100644 --- a/libavcodec/aac.c +++ b/libavcodec/aac.c @@ -979,7 +979,7 @@ static int decode_cce(AACContext * ac, GetBitContext * gb, ChannelElement * che) } sign = get_bits(gb, 1); - scale = pow(2., pow(2., get_bits(gb, 2) - 3)); + scale = pow(2., pow(2., (int)get_bits(gb, 2) - 3)); if ((ret = decode_ics(ac, sce, gb, 0, 0))) return ret;