Mercurial > libavcodec.hg
changeset 7856:0882c93a0c11 libavcodec
Operands of '+' are not necessarily evaluated in order so r15311 was pointless.
Splitting the assignment onto two lines should resolve the order issue.
author | superdump |
---|---|
date | Sat, 13 Sep 2008 20:22:31 +0000 |
parents | 9a135b6a1dc7 |
children | d7801471cd52 |
files | aac.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/aac.c Sat Sep 13 18:47:43 2008 +0000 +++ b/aac.c Sat Sep 13 20:22:31 2008 +0000 @@ -597,7 +597,8 @@ 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];