comparison resample.c @ 5959:7d242886f17b libavcodec

senseless cast and ()
author michael
date Sat, 01 Dec 2007 00:21:43 +0000
parents ed05a3d964fa
children 78b46e3f9df2
comparison
equal deleted inserted replaced
5958:ed05a3d964fa 5959:7d242886f17b
189 memcpy(bufin[i], s->temp[i], s->temp_len * sizeof(short)); 189 memcpy(bufin[i], s->temp[i], s->temp_len * sizeof(short));
190 buftmp2[i] = bufin[i] + s->temp_len; 190 buftmp2[i] = bufin[i] + s->temp_len;
191 } 191 }
192 192
193 /* make some zoom to avoid round pb */ 193 /* make some zoom to avoid round pb */
194 lenout= (int)(4*nb_samples * s->ratio) + 16; 194 lenout= 4*nb_samples * s->ratio + 16;
195 bufout[0]= av_malloc( lenout * sizeof(short) ); 195 bufout[0]= av_malloc( lenout * sizeof(short) );
196 bufout[1]= av_malloc( lenout * sizeof(short) ); 196 bufout[1]= av_malloc( lenout * sizeof(short) );
197 197
198 if (s->input_channels == 2 && 198 if (s->input_channels == 2 &&
199 s->output_channels == 1) { 199 s->output_channels == 1) {