Mercurial > libavcodec.hg
diff resample.c @ 5958:ed05a3d964fa libavcodec
stupid code (casting of void*) found by checktree.sh
author | michael |
---|---|
date | Sat, 01 Dec 2007 00:19:44 +0000 |
parents | f64d8abf92e0 |
children | 7d242886f17b |
line wrap: on
line diff
--- a/resample.c Fri Nov 30 21:51:34 2007 +0000 +++ b/resample.c Sat Dec 01 00:19:44 2007 +0000 @@ -185,15 +185,15 @@ /* 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) {