summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'mencoder.c')
-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;