Mercurial > mplayer.hg
changeset 32122:0f9662ec84d0
Replace malloc+memset by calloc.
author | reimar |
---|---|
date | Sun, 12 Sep 2010 16:03:46 +0000 |
parents | d332ea379205 |
children | a86413775fbe |
files | libmpcodecs/ve_x264.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;