diff libaf/af_channels.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 e7309a3b65f6
children ecf562795caf
line wrap: on
line diff
--- a/libaf/af_channels.c	Sat Jan 08 21:06:04 2005 +0000
+++ b/libaf/af_channels.c	Sat Jan 08 21:34:06 2005 +0000
@@ -151,6 +151,7 @@
     af->data->bps    = ((af_data_t*)arg)->bps;
     af->mul.n        = af->data->nch;
     af->mul.d	     = ((af_data_t*)arg)->nch;
+    af_frac_cancel(&af->mul);
     return check_routes(s,((af_data_t*)arg)->nch,af->data->nch);
   case AF_CONTROL_COMMAND_LINE:{
     int nch = 0;