[MPlayer-cvslog] r32206 - trunk/libmpcodecs/ve_x264.c

reimar subversion at mplayerhq.hu
Sun Sep 12 18:03:46 CEST 2010


Author: reimar
Date: Sun Sep 12 18:03:46 2010
New Revision: 32206

Log:
Replace malloc+memset by calloc.

Modified:
   trunk/libmpcodecs/ve_x264.c

Modified: trunk/libmpcodecs/ve_x264.c
==============================================================================
--- trunk/libmpcodecs/ve_x264.c	Sun Sep 12 17:55:47 2010	(r32205)
+++ trunk/libmpcodecs/ve_x264.c	Sun Sep 12 18:03:46 2010	(r32206)
@@ -293,8 +293,7 @@ static int vf_open(vf_instance_t *vf, ch
 
     mod=(h264_module_t*)vf->priv;
     mod->mux = (muxer_stream_t*)args;
-    mod->mux->bih = malloc(sizeof(BITMAPINFOHEADER));
-    memset(mod->mux->bih, 0, sizeof(BITMAPINFOHEADER));
+    mod->mux->bih = calloc(1, sizeof(BITMAPINFOHEADER));
     mod->mux->bih->biSize = sizeof(BITMAPINFOHEADER);
     mod->mux->bih->biPlanes = 1;
     mod->mux->bih->biBitCount = 24;


More information about the MPlayer-cvslog mailing list