diff libaf/af_format.c @ 14433:95bb94a930a3

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)
author reimar
date Sat, 08 Jan 2005 21:34:06 +0000
parents 1a882e2a419b
children 51a7560a92b7
line wrap: on
line diff
--- a/libaf/af_format.c	Sat Jan 08 21:06:04 2005 +0000
+++ b/libaf/af_format.c	Sat Jan 08 21:34:06 2005 +0000
@@ -306,6 +306,7 @@
     af->data->nch  = ((af_data_t*)arg)->nch;
     af->mul.n      = af->data->bps;
     af->mul.d      = ((af_data_t*)arg)->bps;
+    af_frac_cancel(&af->mul);
     
     af->play = play; // set default