Simplify: use memset

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25674 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-01-11 20:23:46 +00:00
parent 27064210bc
commit 1b4cd62e0b
1 changed files with 3 additions and 4 deletions

View File

@ -164,10 +164,9 @@ static int control(int cmd, void *arg) {
* \param num_bufs number of buffers * \param num_bufs number of buffers
*/ */
static void silence(float **bufs, int cnt, int num_bufs) { static void silence(float **bufs, int cnt, int num_bufs) {
int i, j; int i;
for (i = 0; i < cnt; i++) for (i = 0; i < num_bufs; i++)
for (j = 0; j < num_bufs; j++) memset(bufs[i], 0, cnt * sizeof(float));
bufs[j][i] = 0;
} }
/** /**