comparison wmadec.c @ 11452:d5673aafc6bf libavcodec

Fix indentation after r22414.
author cehoyos
date Tue, 09 Mar 2010 23:37:45 +0000
parents 01559518729e
children 8a4984c5cacc
comparison
equal deleted inserted replaced
11451:01559518729e 11452:d5673aafc6bf
789 789
790 /* convert frame to integer */ 790 /* convert frame to integer */
791 n = s->frame_len; 791 n = s->frame_len;
792 incr = s->nb_channels; 792 incr = s->nb_channels;
793 if (s->dsp.float_to_int16_interleave == ff_float_to_int16_interleave_c) { 793 if (s->dsp.float_to_int16_interleave == ff_float_to_int16_interleave_c) {
794 for(ch = 0; ch < s->nb_channels; ch++) { 794 for(ch = 0; ch < s->nb_channels; ch++) {
795 ptr = samples + ch; 795 ptr = samples + ch;
796 iptr = s->frame_out[ch]; 796 iptr = s->frame_out[ch];
797 797
798 for(i=0;i<n;i++) { 798 for(i=0;i<n;i++) {
799 *ptr = av_clip_int16(lrintf(*iptr++)); 799 *ptr = av_clip_int16(lrintf(*iptr++));
800 ptr += incr; 800 ptr += incr;
801 } 801 }
802 /* prepare for next block */ 802 /* prepare for next block */
803 memmove(&s->frame_out[ch][0], &s->frame_out[ch][s->frame_len], 803 memmove(&s->frame_out[ch][0], &s->frame_out[ch][s->frame_len],
804 s->frame_len * sizeof(float)); 804 s->frame_len * sizeof(float));
805 } 805 }
806 } else { 806 } else {
807 float *output[MAX_CHANNELS]; 807 float *output[MAX_CHANNELS];
808 for (ch = 0; ch < MAX_CHANNELS; ch++) 808 for (ch = 0; ch < MAX_CHANNELS; ch++)
809 output[ch] = s->frame_out[ch]; 809 output[ch] = s->frame_out[ch];
810 s->dsp.float_to_int16_interleave(samples, (const float **)output, n, incr); 810 s->dsp.float_to_int16_interleave(samples, (const float **)output, n, incr);