diff --git a/libavcodec/resample.c b/libavcodec/resample.c index 7840b1679d..e427185c20 100644 --- a/libavcodec/resample.c +++ b/libavcodec/resample.c @@ -191,7 +191,7 @@ int audio_resample(ReSampleContext *s, short *output, short *input, int nb_sampl } /* make some zoom to avoid round pb */ - lenout= (int)(4*nb_samples * s->ratio) + 16; + lenout= 4*nb_samples * s->ratio + 16; bufout[0]= av_malloc( lenout * sizeof(short) ); bufout[1]= av_malloc( lenout * sizeof(short) );