resample2: Fix passing argument from incompatible pointer type warnings.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/2/head
Michael Niedermayer 13 years ago
parent e6459720b5
commit 03e56a2ad9
  1. 2
      libswresample/resample2.c

@ -344,7 +344,7 @@ int swr_multiple_resample(AVResampleContext *c, AudioData *dst, int dst_size, Au
int i, ret= -1; int i, ret= -1;
for(i=0; i<dst->ch_count; i++){ for(i=0; i<dst->ch_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; return ret;

Loading…
Cancel
Save