diff libmpcodecs/ae_pcm.c @ 32105:c08363dc5320

Replace sizoef(type) by sizeof(*ptrvar). Besides being consistent with FFmpeg style, this reduces the size of a patch to rename these types to not conflict with the windows.h definitions.
author reimar
date Sun, 12 Sep 2010 13:01:05 +0000
parents 32725ca88fed
children
line wrap: on
line diff
--- a/libmpcodecs/ae_pcm.c	Sun Sep 12 12:49:28 2010 +0000
+++ b/libmpcodecs/ae_pcm.c	Sun Sep 12 13:01:05 2010 +0000
@@ -37,7 +37,7 @@
 {
 	mux_a->h.dwScale=1;
 	mux_a->h.dwRate=encoder->params.sample_rate;
-	mux_a->wf=malloc(sizeof(WAVEFORMATEX));
+	mux_a->wf=malloc(sizeof(*mux_a->wf));
 	mux_a->wf->wFormatTag=0x1; // PCM
 	mux_a->wf->nChannels=encoder->params.channels;
 	mux_a->h.dwSampleSize=2*mux_a->wf->nChannels;