[FFmpeg-cvslog] swr: fix warning: passing argument 2 of ctx-> simd_f from incompatible pointer type
Michael Niedermayer
git at videolan.org
Mon Jul 2 17:37:59 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jul 2 17:31:16 2012 +0200| [087d067a9943b48b9af592baf4a360d8d783829a] | committer: Michael Niedermayer
swr: fix warning: passing argument 2 of ctx->simd_f from incompatible pointer type
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=087d067a9943b48b9af592baf4a360d8d783829a
---
libswresample/audioconvert.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libswresample/audioconvert.c b/libswresample/audioconvert.c
index e4c84ca..2d9c55b 100644
--- a/libswresample/audioconvert.c
+++ b/libswresample/audioconvert.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list