diff libmpcodecs/ve_divx4.c @ 14549:acf3241be19b

Initialized BITMAPINFOHEADER to 0 to avoid problems, esp. windows has problems when unused parts have bogus values.
author reimar
date Thu, 20 Jan 2005 22:53:37 +0000
parents 656a1b45b309
children 5723c4b2a2ea
line wrap: on
line diff
--- a/libmpcodecs/ve_divx4.c	Thu Jan 20 20:22:58 2005 +0000
+++ b/libmpcodecs/ve_divx4.c	Thu Jan 20 22:53:37 2005 +0000
@@ -463,7 +463,7 @@
     memset(vf->priv,0,sizeof(struct vf_priv_s));
     vf->priv->mux=(muxer_stream_t*)args;
 
-    mux_v->bih=malloc(sizeof(BITMAPINFOHEADER));
+    mux_v->bih=calloc(1, sizeof(BITMAPINFOHEADER));
     mux_v->bih->biSize=sizeof(BITMAPINFOHEADER);
     mux_v->bih->biWidth=0;
     mux_v->bih->biHeight=0;