From 8ee78e87ce7961a5b02762fd71c6e348198307fe Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 8 Jan 2005 21:34:06 +0000 Subject: 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 --- libaf/af_pan.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libaf/af_pan.c') diff --git a/libaf/af_pan.c b/libaf/af_pan.c index 268ffd6e4b..8a8aa241fc 100644 --- a/libaf/af_pan.c +++ b/libaf/af_pan.c @@ -41,6 +41,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg) af->data->bps = 4; af->mul.n = af->data->nch; af->mul.d = ((af_data_t*)arg)->nch; + af_frac_cancel(&af->mul); if((af->data->format != ((af_data_t*)arg)->format) || (af->data->bps != ((af_data_t*)arg)->bps)){ -- cgit v1.2.3