comparison aac.c @ 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
comparison
equal deleted inserted replaced
7855:9a135b6a1dc7 7856:0882c93a0c11
595 * Decode pulse data; reference: table 4.7. 595 * Decode pulse data; reference: table 4.7.
596 */ 596 */
597 static void decode_pulses(Pulse * pulse, GetBitContext * gb, const uint16_t * swb_offset) { 597 static void decode_pulses(Pulse * pulse, GetBitContext * gb, const uint16_t * swb_offset) {
598 int i; 598 int i;
599 pulse->num_pulse = get_bits(gb, 2) + 1; 599 pulse->num_pulse = get_bits(gb, 2) + 1;
600 pulse->pos[0] = swb_offset[get_bits(gb, 6)] + get_bits(gb, 5); 600 pulse->pos[0] = swb_offset[get_bits(gb, 6)];
601 pulse->pos[0] += get_bits(gb, 5);
601 pulse->amp[0] = get_bits(gb, 4); 602 pulse->amp[0] = get_bits(gb, 4);
602 for (i = 1; i < pulse->num_pulse; i++) { 603 for (i = 1; i < pulse->num_pulse; i++) {
603 pulse->pos[i] = get_bits(gb, 5) + pulse->pos[i-1]; 604 pulse->pos[i] = get_bits(gb, 5) + pulse->pos[i-1];
604 pulse->amp[i] = get_bits(gb, 4); 605 pulse->amp[i] = get_bits(gb, 4);
605 } 606 }