mirror of https://github.com/mpv-player/mpv
Simplify: use memset
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25674 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
27064210bc
commit
1b4cd62e0b
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue