diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-01-08 21:34:06 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-01-08 21:34:06 +0000 |
commit | 8ee78e87ce7961a5b02762fd71c6e348198307fe (patch) | |
tree | 757423509666fb2bb9afd8b94674e001fac3ac6f /libaf/af.h | |
parent | aae5663175bf24ff9a8a8ee5b01e46420f3f7357 (diff) | |
download | mpv-8ee78e87ce7961a5b02762fd71c6e348198307fe.tar.bz2 mpv-8ee78e87ce7961a5b02762fd71c6e348198307fe.tar.xz |
always cancel down fractions (frac_t) to avoid overflows and playback
problems (e.g. when using resample and equalizer filters together, see
http://mplayerhq.hu/pipermail/mplayer-users/2004-December/050058.html)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14434 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf/af.h')
-rw-r--r-- | libaf/af.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libaf/af.h b/libaf/af.h index 3f1b7d16a5..4e9bdeb200 100644 --- a/libaf/af.h +++ b/libaf/af.h @@ -28,6 +28,10 @@ typedef struct frac_s int d; // Denominator } frac_t; +int af_gcd(register int a, register int b); +void af_frac_cancel(frac_t *f); +void af_frac_mul(frac_t *out, const frac_t *in); + // Flags used for defining the behavior of an audio filter #define AF_FLAGS_REENTRANT 0x00000000 #define AF_FLAGS_NOT_REENTRANT 0x00000001 |