changeset 2835:d4c4b84e0fac libavcodec

minor fixes for invalid audio data patch by (Wolfram Gloger: wmglo, dent med uni-muenchen de)
author michael
date Sun, 14 Aug 2005 16:37:29 +0000
parents fd5d7c732c6b
children 7bfea1374957
files resample2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/resample2.c	Sun Aug 14 15:42:40 2005 +0000
+++ b/resample2.c	Sun Aug 14 16:37:29 2005 +0000
@@ -139,7 +139,7 @@
     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));