diff libmpdemux/demux_realaud.c @ 32111:7c8d240d37a6

Replace sizeof(type)
author reimar
date Sun, 12 Sep 2010 13:26:39 +0000
parents 4bc52519c25f
children 8fa2f43cb760
line wrap: on
line diff
--- a/libmpdemux/demux_realaud.c	Sun Sep 12 13:14:18 2010 +0000
+++ b/libmpdemux/demux_realaud.c	Sun Sep 12 13:26:39 2010 +0000
@@ -287,7 +287,7 @@
 	}
 
 	/* Fill WAVEFORMATEX */
-	sh->wf = calloc(1, sizeof(WAVEFORMATEX));
+	sh->wf = calloc(1, sizeof(*sh->wf));
 	sh->wf->nChannels = sh->channels;
 	sh->wf->wBitsPerSample = sh->samplesize;
 	sh->wf->nSamplesPerSec = sh->samplerate;