comparison wmadec.c @ 12101:ab330d7112ad libavcodec

Silence warning "new qualifiers in middle of multi-level non-const cast are unsafe". Patch by Eli Friedman, eli d friedman a gmail
author cehoyos
date Wed, 07 Jul 2010 10:24:34 +0000
parents 7dd2a45249a9
children
comparison
equal deleted inserted replaced
12100:db9ef48dc0e4 12101:ab330d7112ad
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 const 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, output, n, incr);
811 for(ch = 0; ch < incr; ch++) { 811 for(ch = 0; ch < incr; ch++) {
812 /* prepare for next block */ 812 /* prepare for next block */
813 memmove(&s->frame_out[ch][0], &s->frame_out[ch][n], n * sizeof(float)); 813 memmove(&s->frame_out[ch][0], &s->frame_out[ch][n], n * sizeof(float));
814 } 814 }
815 } 815 }