swr: fix warning: passing argument 2 of ctx->simd_f from incompatible pointer type
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 2 Jul 2012 15:31:16 +0000 (17:31 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 2 Jul 2012 15:31:16 +0000 (17:31 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/audioconvert.c

index e4c84ca..2d9c55b 100644 (file)
@@ -182,10 +182,10 @@ int swri_audio_convert(AudioConvert *ctx, AudioData *out, AudioData *in, int len
             if(out->planar == in->planar){
                 int planes = out->planar ? out->ch_count : 1;
                 for(ch=0; ch<planes; ch++){
-                    ctx->simd_f(out->ch+ch, in->ch+ch, off * (out->planar ? 1 :out->ch_count));
+                    ctx->simd_f(out->ch+ch, (const uint8_t **)in->ch+ch, off * (out->planar ? 1 :out->ch_count));
                 }
             }else{
-                ctx->simd_f(out->ch, in->ch, off);
+                ctx->simd_f(out->ch, (const uint8_t **)in->ch, off);
             }
         }
         if(off == len)