[Mplayer-cvslog] CVS: main mencoder.c,1.249,1.250

Tobias Diedrich CVS syncmail at mplayerhq.hu
Tue Jun 8 18:43:27 CEST 2004


CVS change done by Tobias Diedrich CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv4268

Modified Files:
	mencoder.c 
Log Message:
We don't want junk in unused parts of the BITMAPINFOHEADER

Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.249
retrieving revision 1.250
diff -u -r1.249 -r1.250
--- mencoder.c	19 May 2004 04:38:05 -0000	1.249
+++ mencoder.c	8 Jun 2004 16:43:24 -0000	1.250
@@ -663,7 +663,7 @@
 	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 @@
 	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;




More information about the MPlayer-cvslog mailing list