Mercurial > mplayer.hg
changeset 32097:258df656f1ff
Replace malloc+memset by calloc
author | reimar |
---|---|
date | Sun, 12 Sep 2010 11:44:42 +0000 |
parents | 06519a2a9c77 |
children | 522a5ab34d2f |
files | libmpdemux/demux_mf.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mf.c Sun Sep 12 11:22:42 2010 +0000 +++ b/libmpdemux/demux_mf.c Sun Sep 12 11:44:42 2010 +0000 @@ -160,8 +160,7 @@ sh_video->frametime = 1 / sh_video->fps; // emulate BITMAPINFOHEADER: - sh_video->bih=malloc(sizeof(BITMAPINFOHEADER)); - memset(sh_video->bih,0,sizeof(BITMAPINFOHEADER)); + sh_video->bih=calloc(1, sizeof(BITMAPINFOHEADER)); sh_video->bih->biSize=40; sh_video->bih->biWidth = mf_w; sh_video->bih->biHeight = mf_h;