[MPlayer-cvslog] r32181 - trunk/libmpdemux/demux_mf.c
reimar
subversion at mplayerhq.hu
Sun Sep 12 13:44:43 CEST 2010
Author: reimar
Date: Sun Sep 12 13:44:42 2010
New Revision: 32181
Log:
Replace malloc+memset by calloc
Modified:
trunk/libmpdemux/demux_mf.c
Modified: trunk/libmpdemux/demux_mf.c
==============================================================================
--- trunk/libmpdemux/demux_mf.c Sun Sep 12 13:22:42 2010 (r32180)
+++ trunk/libmpdemux/demux_mf.c Sun Sep 12 13:44:42 2010 (r32181)
@@ -160,8 +160,7 @@ static demuxer_t* demux_open_mf(demuxer_
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;
More information about the MPlayer-cvslog
mailing list