comparison wmadec.c @ 7244:9aa321d5d510 libavcodec

indent
author michael
date Fri, 11 Jul 2008 19:54:02 +0000
parents 158c8bc08f81
children 85ab7655ad4d
comparison
equal deleted inserted replaced
7243:158c8bc08f81 7244:9aa321d5d510
680 } 680 }
681 } 681 }
682 682
683 next: 683 next:
684 for(ch = 0; ch < s->nb_channels; ch++) { 684 for(ch = 0; ch < s->nb_channels; ch++) {
685 int n4, index, n; 685 int n4, index, n;
686 686
687 n = s->block_len; 687 n = s->block_len;
688 n4 = s->block_len / 2; 688 n4 = s->block_len / 2;
689 if(s->channel_coded[ch]){ 689 if(s->channel_coded[ch]){
690 s->mdct_ctx[bsize].fft.imdct_calc(&s->mdct_ctx[bsize], 690 s->mdct_ctx[bsize].fft.imdct_calc(&s->mdct_ctx[bsize],
691 s->output, s->coefs[ch], s->mdct_tmp); 691 s->output, s->coefs[ch], s->mdct_tmp);
692 }else 692 }else
693 memset(s->output, 0, sizeof(s->output)); 693 memset(s->output, 0, sizeof(s->output));
694 694
695 /* multiply by the window and add in the frame */ 695 /* multiply by the window and add in the frame */
696 index = (s->frame_len / 2) + s->block_pos - n4; 696 index = (s->frame_len / 2) + s->block_pos - n4;
697 wma_window(s, &s->frame_out[ch][index]); 697 wma_window(s, &s->frame_out[ch][index]);
698 698
699 /* specific fast case for ms-stereo : add to second 699 /* specific fast case for ms-stereo : add to second
700 channel if it is not coded */ 700 channel if it is not coded */
701 if (s->ms_stereo && !s->channel_coded[1]) { 701 if (s->ms_stereo && !s->channel_coded[1]) {
702 wma_window(s, &s->frame_out[1][index]); 702 wma_window(s, &s->frame_out[1][index]);
703 } 703 }
704 } 704 }
705 705
706 /* update block number */ 706 /* update block number */
707 s->block_num++; 707 s->block_num++;
708 s->block_pos += s->block_len; 708 s->block_pos += s->block_len;