mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
[fix] fix getting wrong resolution when using decoder->GetWidth() and decoder->GetHeight() for nv decoder
This commit is contained in:
@@ -474,6 +474,10 @@ int NvDecoder::ReconfigureDecoder(CUVIDEOFORMAT *pVideoFormat) {
|
||||
reconfigParams.ulTargetWidth = m_nSurfaceWidth;
|
||||
reconfigParams.ulTargetHeight = m_nSurfaceHeight;
|
||||
|
||||
if (bDecodeResChange) {
|
||||
setReconfigParams(&m_cropRect, &m_resizeDim);
|
||||
}
|
||||
|
||||
// If external reconfigure is called along with resolution change even if post
|
||||
// processing params is not changed, do full reconfigure params update
|
||||
if ((m_bReconfigExternal && bDecodeResChange) || m_bReconfigExtPPChange) {
|
||||
|
||||
Reference in New Issue
Block a user