aboutsummaryrefslogtreecommitdiffhomepage
path: root/libao2
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-11 20:23:46 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-11 20:23:46 +0000
commit1b4cd62e0b44ae91a9aec5020f31265753cb84a7 (patch)
tree47757f78af59054e3eacc7251bd049ef35b617ae /libao2
parent27064210bc644efdf6e413baff3308fb2b2851ad (diff)
Simplify: use memset
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25674 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r--libao2/ao_jack.c7
1 files 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));
}
/**