# HG changeset patch # User michael # Date 1124037449 0 # Node ID d4c4b84e0facc7d466b1ac8ba0cf5327bc2994cc # Parent fd5d7c732c6b90f336ee6b8be39af91001e2ac82 minor fixes for invalid audio data patch by (Wolfram Gloger: wmglo, dent med uni-muenchen de) diff -r fd5d7c732c6b -r d4c4b84e0fac resample2.c --- 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_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeof(FELEM));