From 7deec05ea0d14dd950715f232b9e7cb7183dd333 Mon Sep 17 00:00:00 2001 From: uau Date: Thu, 1 Nov 2007 06:52:01 +0000 Subject: libaf: change filter input/output ratio calculations Change the audio filters to use a double instead of rationals for the ratio of output to input size. The rationals could overflow when calculating the overall ratio of a filter chain and gave no real advantage compared to doubles. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24916 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libaf/af_export.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libaf/af_export.c') diff --git a/libaf/af_export.c b/libaf/af_export.c index ff8871fdee..571507019d 100644 --- a/libaf/af_export.c +++ b/libaf/af_export.c @@ -239,8 +239,7 @@ static int af_open( af_instance_t* af ) af->control = control; af->uninit = uninit; af->play = play; - af->mul.n = 1; - af->mul.d = 1; + af->mul=1; af->data = calloc(1, sizeof(af_data_t)); af->setup = calloc(1, sizeof(af_export_t)); if((af->data == NULL) || (af->setup == NULL)) -- cgit v1.2.3