summaryrefslogtreecommitdiff
path: root/libavcodec/resample2.c
diff options
context:
space:
mode:
authorWolfram Gloger <wmglo@dent.med.uni-muenchen.de>2005-08-14 16:37:29 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-08-14 16:37:29 +0000
commitf0ff20a197dd98d2c0ecef3d183185a5c45c7196 (patch)
tree39cc1fe5f99539248b788929594261fc4b9f2c42 /libavcodec/resample2.c
parent9450118bc799796ebb23338fe50fc60c3fabe566 (diff)
downloadffmpeg-f0ff20a197dd98d2c0ecef3d183185a5c45c7196.tar.gz
minor fixes for invalid audio data patch by (Wolfram Gloger: wmglo, dent med uni-muenchen de)
Originally committed as revision 4524 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/resample2.c')
-rw-r--r--libavcodec/resample2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/resample2.c b/libavcodec/resample2.c
index adda84435d..4c04c3edea 100644
--- a/libavcodec/resample2.c
+++ b/libavcodec/resample2.c
@@ -139,7 +139,7 @@ AVResampleContext *av_resample_init(int out_rate, int in_rate, int filter_size,
c->phase_mask= phase_count-1;
c->linear= linear;
- c->filter_length= FFMAX(ceil(filter_size/factor), 1);
+ c->filter_length= FFMAX((int)ceil(filter_size/factor), 1);
c->filter_bank= av_mallocz(c->filter_length*(phase_count+1)*sizeof(FELEM));
av_build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, 1);
memcpy(&c->filter_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeof(FELEM));