Commit 916fd9a4 authored by superdump's avatar superdump

Cast the return value of get_bits() to signed integer such that the subtraction

is conducted as a signed calculation.

Patch by Alex Converse (alex converse gmail com)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15362 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cc970d4c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment