[MPlayer-cvslog] r21074 - trunk/libaf/af_resample.c

uau subversion at mplayerhq.hu
Sun Nov 19 19:10:05 CET 2006


Author: uau
Date: Sun Nov 19 19:10:04 2006
New Revision: 21074

Modified:
   trunk/libaf/af_resample.c

Log:
Reinitialize some variables on af_resample reinit, fixes crash


Modified: trunk/libaf/af_resample.c
==============================================================================
--- trunk/libaf/af_resample.c	(original)
+++ trunk/libaf/af_resample.c	Sun Nov 19 19:10:04 2006
@@ -220,6 +220,8 @@
       int j;
       s->up = af->data->rate/d;	
       s->dn = n->rate/d;
+      s->wi = 0;
+      s->i = 0;
       
       // Calculate cuttof frequency for filter
       fc = 1/(float)(max(s->up,s->dn));



More information about the MPlayer-cvslog mailing list