comparison ac3dec.c @ 7491:0dbdc638270e libavcodec

cosmetics: use a better function name than uncouple_channels()
author jbr
date Tue, 05 Aug 2008 01:49:01 +0000
parents bddd15a1d167
children 97383e012cb9
comparison
equal deleted inserted replaced
7490:bddd15a1d167 7491:0dbdc638270e
381 /** 381 /**
382 * Generate transform coefficients for each coupled channel in the coupling 382 * Generate transform coefficients for each coupled channel in the coupling
383 * range using the coupling coefficients and coupling coordinates. 383 * range using the coupling coefficients and coupling coordinates.
384 * reference: Section 7.4.3 Coupling Coordinate Format 384 * reference: Section 7.4.3 Coupling Coordinate Format
385 */ 385 */
386 static void uncouple_channels(AC3DecodeContext *s) 386 static void calc_transform_coeffs_cpl(AC3DecodeContext *s)
387 { 387 {
388 int i, j, ch, bnd, subbnd; 388 int i, j, ch, bnd, subbnd;
389 389
390 subbnd = -1; 390 subbnd = -1;
391 i = s->start_freq[CPL_CH]; 391 i = s->start_freq[CPL_CH];
544 /* tranform coefficients for coupling channel come right after the 544 /* tranform coefficients for coupling channel come right after the
545 coefficients for the first coupled channel*/ 545 coefficients for the first coupled channel*/
546 if (s->channel_in_cpl[ch]) { 546 if (s->channel_in_cpl[ch]) {
547 if (!got_cplchan) { 547 if (!got_cplchan) {
548 get_transform_coeffs_ch(s, CPL_CH, &m); 548 get_transform_coeffs_ch(s, CPL_CH, &m);
549 uncouple_channels(s); 549 calc_transform_coeffs_cpl(s);
550 got_cplchan = 1; 550 got_cplchan = 1;
551 } 551 }
552 end = s->end_freq[CPL_CH]; 552 end = s->end_freq[CPL_CH];
553 } else { 553 } else {
554 end = s->end_freq[ch]; 554 end = s->end_freq[ch];