From 03e56a2ad932203987ba48678689cf1836a86337 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 21 Oct 2011 00:31:20 +0200 Subject: [PATCH] resample2: Fix passing argument from incompatible pointer type warnings. Signed-off-by: Michael Niedermayer --- libswresample/resample2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswresample/resample2.c b/libswresample/resample2.c index ac1610aa26..6af2b6c661 100644 --- a/libswresample/resample2.c +++ b/libswresample/resample2.c @@ -344,7 +344,7 @@ int swr_multiple_resample(AVResampleContext *c, AudioData *dst, int dst_size, Au int i, ret= -1; for(i=0; ich_count; i++){ - ret= swr_resample(c, dst->ch[i], src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count); + ret= swr_resample(c, (short*)dst->ch[i], (const short*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count); } return ret;