diff options
Diffstat (limited to 'libmpdemux/demux_mf.c')
-rw-r--r-- | libmpdemux/demux_mf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libmpdemux/demux_mf.c b/libmpdemux/demux_mf.c index cc6f6be6a8..e4405aedad 100644 --- a/libmpdemux/demux_mf.c +++ b/libmpdemux/demux_mf.c @@ -159,8 +159,7 @@ static demuxer_t* demux_open_mf(demuxer_t* demuxer){ sh_video->frametime = 1 / sh_video->fps; // emulate BITMAPINFOHEADER: - sh_video->bih=malloc(sizeof(BITMAPINFOHEADER)); - memset(sh_video->bih,0,sizeof(BITMAPINFOHEADER)); + sh_video->bih=calloc(1, sizeof(*sh_video->bih)); sh_video->bih->biSize=40; sh_video->bih->biWidth = mf_w; sh_video->bih->biHeight = mf_h; |