comparison qdm2.c @ 3320:888e539459f4 libavcodec

10000l don't reuse outer loop index in inner loops
author rtogni
date Mon, 29 May 2006 19:25:46 +0000
parents 5b2a0e54dfa7
children 6bfe6c09d837
comparison
equal deleted inserted replaced
3319:19e9a62ddf1b 3320:888e539459f4
1468 int duration = q->sub_sampling + 5 - (type & 15); 1468 int duration = q->sub_sampling + 5 - (type & 15);
1469 1469
1470 if (duration >= 0 && duration < 4) 1470 if (duration >= 0 && duration < 4)
1471 qdm2_fft_decode_tones(q, duration, &gb, unknown_flag); 1471 qdm2_fft_decode_tones(q, duration, &gb, unknown_flag);
1472 } else if (type == 31) { 1472 } else if (type == 31) {
1473 for (i=0; i < 4; i++) 1473 for (j=0; j < 4; j++)
1474 qdm2_fft_decode_tones(q, i, &gb, unknown_flag); 1474 qdm2_fft_decode_tones(q, j, &gb, unknown_flag);
1475 } else if (type == 46) { 1475 } else if (type == 46) {
1476 for (i=0; i < 6; i++) 1476 for (j=0; j < 6; j++)
1477 q->fft_level_exp[i] = get_bits(&gb, 6); 1477 q->fft_level_exp[j] = get_bits(&gb, 6);
1478 for (i=0; i < 4; i++) 1478 for (j=0; j < 4; j++)
1479 qdm2_fft_decode_tones(q, i, &gb, unknown_flag); 1479 qdm2_fft_decode_tones(q, j, &gb, unknown_flag);
1480 } 1480 }
1481 } // Loop on B packets 1481 } // Loop on B packets
1482 1482
1483 /* calculate maximum indices for FFT coefficients */ 1483 /* calculate maximum indices for FFT coefficients */
1484 for (i = 0, j = -1; i < 5; i++) 1484 for (i = 0, j = -1; i < 5; i++)