From 1b4cd62e0b44ae91a9aec5020f31265753cb84a7 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 11 Jan 2008 20:23:46 +0000 Subject: [PATCH] Simplify: use memset git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25674 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_jack.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libao2/ao_jack.c b/libao2/ao_jack.c index f6b18910a8..a3252d93fb 100644 --- a/libao2/ao_jack.c +++ b/libao2/ao_jack.c @@ -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)); } /**