[MPlayer-cvslog] r30969 - trunk/libmpdemux/demux_y4m.c
reimar
subversion at mplayerhq.hu
Sat Mar 27 16:35:59 CET 2010
Author: reimar
Date: Sat Mar 27 16:35:59 2010
New Revision: 30969
Log:
Use calloc instead of malloc+memset
Modified:
trunk/libmpdemux/demux_y4m.c
Modified: trunk/libmpdemux/demux_y4m.c
==============================================================================
--- trunk/libmpdemux/demux_y4m.c Sat Mar 27 16:27:16 2010 (r30968)
+++ trunk/libmpdemux/demux_y4m.c Sat Mar 27 16:35:59 2010 (r30969)
@@ -228,8 +228,7 @@ static demuxer_t* demux_open_y4m(demuxer
sh->format = mmioFOURCC('Y', 'V', '1', '2');
- sh->bih=malloc(sizeof(BITMAPINFOHEADER));
- memset(sh->bih,0,sizeof(BITMAPINFOHEADER));
+ sh->bih=calloc(1, sizeof(BITMAPINFOHEADER));
sh->bih->biSize=40;
sh->bih->biWidth = sh->disp_w;
sh->bih->biHeight = sh->disp_h;
More information about the MPlayer-cvslog
mailing list