mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-28 11:27:30 +08:00
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) Originally committed as revision 15362 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:

committed by
Robert Swain

parent
d464bceff2
commit
c8947a5612
@ -979,7 +979,7 @@ static int decode_cce(AACContext * ac, GetBitContext * gb, ChannelElement * che)
|
|||||||
}
|
}
|
||||||
|
|
||||||
sign = get_bits(gb, 1);
|
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)))
|
if ((ret = decode_ics(ac, sce, gb, 0, 0)))
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user