changeset 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 db9ef48dc0e4
children 06c7d6e5eeb6
files wmadec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/wmadec.c	Tue Jul 06 17:48:23 2010 +0000
+++ b/wmadec.c	Wed Jul 07 10:24:34 2010 +0000
@@ -804,10 +804,10 @@
                     s->frame_len * sizeof(float));
         }
     } else {
-        float *output[MAX_CHANNELS];
+        const float *output[MAX_CHANNELS];
         for (ch = 0; ch < MAX_CHANNELS; ch++)
             output[ch] = s->frame_out[ch];
-        s->dsp.float_to_int16_interleave(samples, (const float **)output, n, incr);
+        s->dsp.float_to_int16_interleave(samples, output, n, incr);
         for(ch = 0; ch < incr; ch++) {
             /* prepare for next block */
             memmove(&s->frame_out[ch][0], &s->frame_out[ch][n], n * sizeof(float));