Commit 832fec3e authored by Jactry Zeng's avatar Jactry Zeng Committed by Alexandre Julliard

qcap/videocapture: Initialize caps struct.

parent ecf825af
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment