mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
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
This commit is contained in:
parent
54de722443
commit
004f28c039
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user