Mercurial > mplayer.hg
diff libmpcodecs/ve_xvid4.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 | 5a786c7e4df4 |
children | 5723c4b2a2ea |
line wrap: on
line diff
--- a/libmpcodecs/ve_xvid4.c Thu Jan 20 20:22:58 2005 +0000 +++ b/libmpcodecs/ve_xvid4.c Thu Jan 20 22:53:37 2005 +0000 @@ -570,7 +570,7 @@ mod->mux = (muxer_stream_t*)args; /* Initialize muxer BITMAP header */ - mod->mux->bih = malloc(sizeof(BITMAPINFOHEADER)); + mod->mux->bih = calloc(1, sizeof(BITMAPINFOHEADER)); if(mod->mux->bih == NULL) { mp_msg(MSGT_MENCODER,MSGL_ERR,