diff libmpcodecs/ve_vfw.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_vfw.c	Thu Jan 20 20:22:58 2005 +0000
+++ b/libmpcodecs/ve_vfw.c	Thu Jan 20 22:53:37 2005 +0000
@@ -258,7 +258,7 @@
     memset(vf->priv,0,sizeof(struct vf_priv_s));
     vf->priv->mux=(muxer_stream_t*)args;
 
-    vfw_bih=malloc(sizeof(BITMAPINFOHEADER));
+    vfw_bih=calloc(1, sizeof(BITMAPINFOHEADER));
     vfw_bih->biSize=sizeof(BITMAPINFOHEADER);
     vfw_bih->biWidth=0; // FIXME ?
     vfw_bih->biHeight=0;