[MPlayer-cvslog] r32191 - trunk/libmpdemux/demux_realaud.c
reimar
subversion at mplayerhq.hu
Sun Sep 12 15:04:07 CEST 2010
Author: reimar
Date: Sun Sep 12 15:04:07 2010
New Revision: 32191
Log:
Replace malloc+memset by calloc.
Modified:
trunk/libmpdemux/demux_realaud.c
Modified: trunk/libmpdemux/demux_realaud.c
==============================================================================
--- trunk/libmpdemux/demux_realaud.c Sun Sep 12 15:03:41 2010 (r32190)
+++ trunk/libmpdemux/demux_realaud.c Sun Sep 12 15:04:07 2010 (r32191)
@@ -287,8 +287,7 @@ static demuxer_t* demux_open_ra(demuxer_
}
/* 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;
More information about the MPlayer-cvslog
mailing list