diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-12-01 00:19:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-12-01 00:19:44 +0000 |
commit | 90901860c21468d6e9ae437c2bacb099c7bd3acf (patch) | |
tree | fec0acd1392c465c3717ff4b2aa9b911f1667b1c /libavcodec/resample.c | |
parent | 7fffc879798bbbad647ad2b1b30f26855bf2abda (diff) | |
download | ffmpeg-90901860c21468d6e9ae437c2bacb099c7bd3acf.tar.gz |
stupid code (casting of void*) found by checktree.sh
Originally committed as revision 11117 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/resample.c')
-rw-r--r-- | libavcodec/resample.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/resample.c b/libavcodec/resample.c index 76521a75e0..7840b1679d 100644 --- a/libavcodec/resample.c +++ b/libavcodec/resample.c @@ -185,15 +185,15 @@ int audio_resample(ReSampleContext *s, short *output, short *input, int nb_sampl /* XXX: move those malloc to resample init code */ for(i=0; i<s->filter_channels; i++){ - bufin[i]= (short*) av_malloc( (nb_samples + s->temp_len) * sizeof(short) ); + bufin[i]= av_malloc( (nb_samples + s->temp_len) * sizeof(short) ); memcpy(bufin[i], s->temp[i], s->temp_len * sizeof(short)); buftmp2[i] = bufin[i] + s->temp_len; } /* make some zoom to avoid round pb */ lenout= (int)(4*nb_samples * s->ratio) + 16; - bufout[0]= (short*) av_malloc( lenout * sizeof(short) ); - bufout[1]= (short*) av_malloc( lenout * sizeof(short) ); + bufout[0]= av_malloc( lenout * sizeof(short) ); + bufout[1]= av_malloc( lenout * sizeof(short) ); if (s->input_channels == 2 && s->output_channels == 1) { |