From aeb0c646895c211ce9025736e4558f05bac4f6e4 Mon Sep 17 00:00:00 2001 From: zhangyichix Date: Tue, 16 Aug 2022 06:13:02 +0000 Subject: [PATCH] Calling ConvertMFXParamsToUMC will may change av1's crop size potentailly. Signed-off-by: zhangyichix --- _studio/mfx_lib/shared/src/mfx_common_decode_int.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_studio/mfx_lib/shared/src/mfx_common_decode_int.cpp b/_studio/mfx_lib/shared/src/mfx_common_decode_int.cpp index 34f5c9ca9e..d792047608 100644 --- a/_studio/mfx_lib/shared/src/mfx_common_decode_int.cpp +++ b/_studio/mfx_lib/shared/src/mfx_common_decode_int.cpp @@ -124,8 +124,8 @@ void ConvertMFXParamsToUMC(mfxVideoParam const* par, UMC::VideoStreamInfo *umcVi umcVideoParams->clip_info.height = par->mfx.FrameInfo.Height; umcVideoParams->clip_info.width = par->mfx.FrameInfo.Width; - umcVideoParams->disp_clip_info.height = umcVideoParams->clip_info.height; - umcVideoParams->disp_clip_info.width = umcVideoParams->clip_info.width; + umcVideoParams->disp_clip_info.height = par->mfx.FrameInfo.CropH; + umcVideoParams->disp_clip_info.width = par->mfx.FrameInfo.CropW; if(par->mfx.CodecId == MFX_CODEC_JPEG && (MFX_ROTATION_90 == par->mfx.Rotation || MFX_ROTATION_270 == par->mfx.Rotation)) {