[MPlayer-cvslog] r25674 - trunk/libao2/ao_jack.c

reimar subversion at mplayerhq.hu
Fri Jan 11 21:23:46 CET 2008


Author: reimar
Date: Fri Jan 11 21:23:46 2008
New Revision: 25674

Log:
Simplify: use memset


Modified:
   trunk/libao2/ao_jack.c

Modified: trunk/libao2/ao_jack.c
==============================================================================
--- trunk/libao2/ao_jack.c	(original)
+++ trunk/libao2/ao_jack.c	Fri Jan 11 21:23:46 2008
@@ -164,10 +164,9 @@ static int control(int cmd, void *arg) {
  * \param num_bufs number of buffers
  */
 static void silence(float **bufs, int cnt, int num_bufs) {
-  int i, j;
-  for (i = 0; i < cnt; i++)
-    for (j = 0; j < num_bufs; j++)
-      bufs[j][i] = 0;
+  int i;
+  for (i = 0; i < num_bufs; i++)
+    memset(bufs[i], 0, cnt * sizeof(float));
 }
 
 /**



More information about the MPlayer-cvslog mailing list