Mercurial > mplayer.hg
changeset 32107:4bc52519c25f
Replace malloc+memset by calloc.
author | reimar |
---|---|
date | Sun, 12 Sep 2010 13:04:07 +0000 |
parents | 67f44db4fee9 |
children | e4b9fe8ff87a |
files | libmpdemux/demux_realaud.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_realaud.c Sun Sep 12 13:03:41 2010 +0000 +++ b/libmpdemux/demux_realaud.c Sun Sep 12 13:04:07 2010 +0000 @@ -287,8 +287,7 @@ } /* Fill WAVEFORMATEX */ - sh->wf = malloc(sizeof(WAVEFORMATEX)); - memset(sh->wf, 0, sizeof(WAVEFORMATEX)); + sh->wf = calloc(1, sizeof(WAVEFORMATEX)); sh->wf->nChannels = sh->channels; sh->wf->wBitsPerSample = sh->samplesize; sh->wf->nSamplesPerSec = sh->samplerate;