Mercurial > mplayer.hg
comparison libmpcodecs/ve_xvid.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 |
comparison
equal
deleted
inserted
replaced
14548:ca4949694bfd | 14549:acf3241be19b |
---|---|
545 vf->put_image = put_image; | 545 vf->put_image = put_image; |
546 vf->priv = malloc(sizeof(struct vf_priv_s)); | 546 vf->priv = malloc(sizeof(struct vf_priv_s)); |
547 memset(vf->priv, 0, sizeof(struct vf_priv_s)); | 547 memset(vf->priv, 0, sizeof(struct vf_priv_s)); |
548 vf->priv->mux = (muxer_stream_t*)args; | 548 vf->priv->mux = (muxer_stream_t*)args; |
549 | 549 |
550 vf->priv->mux->bih = malloc(sizeof(BITMAPINFOHEADER)); | 550 vf->priv->mux->bih = calloc(1, sizeof(BITMAPINFOHEADER)); |
551 vf->priv->mux->bih->biSize = sizeof(BITMAPINFOHEADER); | 551 vf->priv->mux->bih->biSize = sizeof(BITMAPINFOHEADER); |
552 vf->priv->mux->bih->biWidth = 0; | 552 vf->priv->mux->bih->biWidth = 0; |
553 vf->priv->mux->bih->biHeight = 0; | 553 vf->priv->mux->bih->biHeight = 0; |
554 vf->priv->mux->bih->biPlanes = 1; | 554 vf->priv->mux->bih->biPlanes = 1; |
555 vf->priv->mux->bih->biBitCount = 24; | 555 vf->priv->mux->bih->biBitCount = 24; |