mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Operands of '+' are not necessarily evaluated in order so r15311 was pointless.
Splitting the assignment onto two lines should resolve the order issue. Originally committed as revision 15313 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ab5ce4aeae
commit
408992bae2
@ -597,7 +597,8 @@ static int decode_scalefactors(AACContext * ac, float sf[120], GetBitContext * g
|
||||
static void decode_pulses(Pulse * pulse, GetBitContext * gb, const uint16_t * swb_offset) {
|
||||
int i;
|
||||
pulse->num_pulse = get_bits(gb, 2) + 1;
|
||||
pulse->pos[0] = swb_offset[get_bits(gb, 6)] + get_bits(gb, 5);
|
||||
pulse->pos[0] = swb_offset[get_bits(gb, 6)];
|
||||
pulse->pos[0] += get_bits(gb, 5);
|
||||
pulse->amp[0] = get_bits(gb, 4);
|
||||
for (i = 1; i < pulse->num_pulse; i++) {
|
||||
pulse->pos[i] = get_bits(gb, 5) + pulse->pos[i-1];
|
||||
|
Loading…
Reference in New Issue
Block a user