Mercurial > mplayer.hg
diff libmpdemux/demux_mf.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 | 258df656f1ff |
children | 8fa2f43cb760 |
line wrap: on
line diff
--- a/libmpdemux/demux_mf.c Sun Sep 12 12:49:28 2010 +0000 +++ b/libmpdemux/demux_mf.c Sun Sep 12 13:01:05 2010 +0000 @@ -160,7 +160,7 @@ sh_video->frametime = 1 / sh_video->fps; // emulate BITMAPINFOHEADER: - sh_video->bih=calloc(1, sizeof(BITMAPINFOHEADER)); + sh_video->bih=calloc(1, sizeof(*sh_video->bih)); sh_video->bih->biSize=40; sh_video->bih->biWidth = mf_w; sh_video->bih->biHeight = mf_h;