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_ladspa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libaf/af_ladspa.c') diff --git a/libaf/af_ladspa.c b/libaf/af_ladspa.c index 5fd03f367d..199faabfbb 100644 --- a/libaf/af_ladspa.c +++ b/libaf/af_ladspa.c @@ -940,8 +940,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)); if (af->data == NULL) -- cgit v1.2.3