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
|
* \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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue