Fix DXVA video centering

This commit is contained in:
Cameron Gutman 2018-07-18 21:48:46 -07:00
parent 5ee1358712
commit bd8e4a4bce

View file

@ -450,7 +450,7 @@ void DXVA2Renderer::renderFrame(AVFrame* frame)
int drawWidth = (int)(m_DisplayHeight * srcAspectRatio);
sample.DstRect.bottom = m_DisplayHeight;
sample.DstRect.left = (m_DisplayWidth - drawWidth) / 2;
sample.DstRect.right = drawWidth;
sample.DstRect.right = sample.DstRect.left + drawWidth;
}
DXVA2_VideoProcessBltParams bltParams = {};