summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorranma <ranma@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-06-08 16:43:24 +0000
committerranma <ranma@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-06-08 16:43:24 +0000
commit004f28c0390eff8acf83840c96083b59a171d0fb (patch)
tree72450d2bd1f50ced44d79498cffee189910397ff
parent54de722443c3b8b21fcd9b783788f762b1c3aca9 (diff)
downloadmpv-004f28c0390eff8acf83840c96083b59a171d0fb.tar.bz2
mpv-004f28c0390eff8acf83840c96083b59a171d0fb.tar.xz
We don't want junk in unused parts of the BITMAPINFOHEADER
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12547 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--mencoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mencoder.c b/mencoder.c
index 296b5bab53..211e97eb53 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -663,7 +663,7 @@ case VCODEC_COPY:
mux_v->bih=sh_video->bih;
else
{
- mux_v->bih=malloc(sizeof(BITMAPINFOHEADER));
+ mux_v->bih=calloc(1,sizeof(BITMAPINFOHEADER));
mux_v->bih->biSize=sizeof(BITMAPINFOHEADER);
mux_v->bih->biWidth=sh_video->disp_w;
mux_v->bih->biHeight=sh_video->disp_h;
@@ -677,7 +677,7 @@ case VCODEC_COPY:
mux_v->bih->biBitCount, mux_v->bih->biCompression);
break;
case VCODEC_FRAMENO:
- mux_v->bih=malloc(sizeof(BITMAPINFOHEADER));
+ mux_v->bih=calloc(1,sizeof(BITMAPINFOHEADER));
mux_v->bih->biSize=sizeof(BITMAPINFOHEADER);
mux_v->bih->biWidth=sh_video->disp_w;
mux_v->bih->biHeight=sh_video->disp_h;