# HG changeset patch # User reimar # Date 1284307426 0 # Node ID 0f9662ec84d080ca781a63b549b78ce7b32d5f44 # Parent d332ea379205881b1597da12530d431c85b6d2f3 Replace malloc+memset by calloc. diff -r d332ea379205 -r 0f9662ec84d0 libmpcodecs/ve_x264.c --- a/libmpcodecs/ve_x264.c Sun Sep 12 15:55:47 2010 +0000 +++ b/libmpcodecs/ve_x264.c Sun Sep 12 16:03:46 2010 +0000 @@ -293,8 +293,7 @@ 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;