qcap/videocapture: Initialize caps struct.

Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jactry Zeng 2020-05-12 21:36:10 +08:00 committed by Alexandre Julliard
parent ecf825afc7
commit 832fec3e54
1 changed files with 1 additions and 0 deletions

View File

@ -442,6 +442,7 @@ static void fill_caps(__u32 pixelformat, __u32 width, __u32 height,
{
LONG depth = 24;
memset(caps, 0, sizeof(*caps));
caps->video_info.dwBitRate = width * height * depth * max_fps;
caps->video_info.bmiHeader.biSize = sizeof(caps->video_info.bmiHeader);
caps->video_info.bmiHeader.biWidth = width;