1
mirror of https://github.com/mpv-player/mpv synced 2025-01-01 04:36:24 +01:00

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

View File

@ -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));
}
/**