[MPlayer-cvslog] r29939 - trunk/libmpdemux/demux_rawdv.c

reimar subversion at mplayerhq.hu
Sat Nov 21 00:41:06 CET 2009


Author: reimar
Date: Sat Nov 21 00:41:06 2009
New Revision: 29939

Log:
calloc instead of malloc+memset.

Modified:
   trunk/libmpdemux/demux_rawdv.c

Modified: trunk/libmpdemux/demux_rawdv.c
==============================================================================
--- trunk/libmpdemux/demux_rawdv.c	Sat Nov 21 00:36:16 2009	(r29938)
+++ trunk/libmpdemux/demux_rawdv.c	Sat Nov 21 00:41:06 2009	(r29939)
@@ -190,8 +190,7 @@ static demuxer_t* demux_open_rawdv(demux
    sh_video->frametime = 1.0/sh_video->fps;
 
   // emulate BITMAPINFOHEADER for win32 decoders:
-  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 = dv_decoder->width;
   sh_video->bih->biHeight = dv_decoder->height;


More information about the MPlayer-cvslog mailing list