diff options
author | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-01 06:52:01 +0000 |
---|---|---|
committer | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-01 06:52:01 +0000 |
commit | 7deec05ea0d14dd950715f232b9e7cb7183dd333 (patch) | |
tree | a669500520b58be3ba988f7a3e7e0b7d802e0313 /libaf/af.h | |
parent | c6824f577ee5da01a7bb0b787d0253da925c2c0f (diff) | |
download | mpv-7deec05ea0d14dd950715f232b9e7cb7183dd333.tar.bz2 mpv-7deec05ea0d14dd950715f232b9e7cb7183dd333.tar.xz |
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
Diffstat (limited to 'libaf/af.h')
-rw-r--r-- | libaf/af.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libaf/af.h b/libaf/af.h index d41f9964fb..8f9ab9183b 100644 --- a/libaf/af.h +++ b/libaf/af.h @@ -65,7 +65,7 @@ typedef struct af_instance_s struct af_instance_s* next; struct af_instance_s* prev; double delay; // Delay caused by the filter [ms] - frac_t mul; /* length multiplier: how much does this instance change + double mul; /* length multiplier: how much does this instance change the length of the buffer. */ }af_instance_t; @@ -238,7 +238,7 @@ int af_resize_local_buffer(af_instance_t* af, af_data_t* data); /* Helper function used to calculate the exact buffer length needed when buffers are resized. The returned length is >= than what is needed */ -int af_lencalc(frac_t mul, af_data_t* data); +int af_lencalc(double mul, af_data_t* data); /** * \brief convert dB to gain value |