comparison 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
comparison
equal deleted inserted replaced
14548:ca4949694bfd 14549:acf3241be19b
568 568
569 /* Bind the Muxer */ 569 /* Bind the Muxer */
570 mod->mux = (muxer_stream_t*)args; 570 mod->mux = (muxer_stream_t*)args;
571 571
572 /* Initialize muxer BITMAP header */ 572 /* Initialize muxer BITMAP header */
573 mod->mux->bih = malloc(sizeof(BITMAPINFOHEADER)); 573 mod->mux->bih = calloc(1, sizeof(BITMAPINFOHEADER));
574 574
575 if(mod->mux->bih == NULL) { 575 if(mod->mux->bih == NULL) {
576 mp_msg(MSGT_MENCODER,MSGL_ERR, 576 mp_msg(MSGT_MENCODER,MSGL_ERR,
577 "xvid: memory allocation failure (BITMAP header)\n"); 577 "xvid: memory allocation failure (BITMAP header)\n");
578 return(BAD); 578 return(BAD);