comparison aacenc.c @ 12445:7919771169c5 libavcodec

aacenc: Remove an unused variable from adjust_frame_information().
author alexc
date Tue, 31 Aug 2010 00:33:56 +0000
parents 2350457a3777
children
comparison
equal deleted inserted replaced
12444:2350457a3777 12445:7919771169c5
300 * Produce integer coefficients from scalefactors provided by the model. 300 * Produce integer coefficients from scalefactors provided by the model.
301 */ 301 */
302 static void adjust_frame_information(AACEncContext *apc, ChannelElement *cpe, int chans) 302 static void adjust_frame_information(AACEncContext *apc, ChannelElement *cpe, int chans)
303 { 303 {
304 int i, w, w2, g, ch; 304 int i, w, w2, g, ch;
305 int start, sum, maxsfb, cmaxsfb; 305 int start, maxsfb, cmaxsfb;
306 306
307 for (ch = 0; ch < chans; ch++) { 307 for (ch = 0; ch < chans; ch++) {
308 IndividualChannelStream *ics = &cpe->ch[ch].ics; 308 IndividualChannelStream *ics = &cpe->ch[ch].ics;
309 start = 0; 309 start = 0;
310 maxsfb = 0; 310 maxsfb = 0;
311 cpe->ch[ch].pulse.num_pulse = 0; 311 cpe->ch[ch].pulse.num_pulse = 0;
312 for (w = 0; w < ics->num_windows*16; w += 16) { 312 for (w = 0; w < ics->num_windows*16; w += 16) {
313 for (g = 0; g < ics->num_swb; g++) { 313 for (g = 0; g < ics->num_swb; g++) {
314 sum = 0;
315 //apply M/S 314 //apply M/S
316 if (cpe->common_window && !ch && cpe->ms_mask[w + g]) { 315 if (cpe->common_window && !ch && cpe->ms_mask[w + g]) {
317 for (i = 0; i < ics->swb_sizes[g]; i++) { 316 for (i = 0; i < ics->swb_sizes[g]; i++) {
318 cpe->ch[0].coeffs[start+i] = (cpe->ch[0].coeffs[start+i] + cpe->ch[1].coeffs[start+i]) / 2.0; 317 cpe->ch[0].coeffs[start+i] = (cpe->ch[0].coeffs[start+i] + cpe->ch[1].coeffs[start+i]) / 2.0;
319 cpe->ch[1].coeffs[start+i] = cpe->ch[0].coeffs[start+i] - cpe->ch[1].coeffs[start+i]; 318 cpe->ch[1].coeffs[start+i] = cpe->ch[0].coeffs[start+i] - cpe->ch[1].coeffs[start+i];