Skip to content
Snippets Groups Projects
Commit 00dfad65 authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk
Browse files

winvideo: use MinFrameInterval to calculate maximum fps

Change-Id: Id070a72d5711fa47ff6080ed47d19c384cd95637
parent c6ab78a0
Branches
No related tags found
No related merge requests found
......@@ -220,7 +220,8 @@ VideoDeviceImpl::setup()
}
auto videoInfo = (VIDEOINFOHEADER*)pmt->pbFormat;
auto size = jami::video::VideoSize(videoInfo->bmiHeader.biWidth, videoInfo->bmiHeader.biHeight);
auto rate = jami::video::FrameRate(1e7, videoInfo->AvgTimePerFrame);
// use 1e7 / MinFrameInterval to get maximum fps
auto rate = jami::video::FrameRate(1e7, pSCC.MinFrameInterval);
auto bitrate = videoInfo->dwBitRate;
// Only add configurations with positive bitrates.
if (bitrate == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment