Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Commit aeb0c64

Browse files
committed
Calling ConvertMFXParamsToUMC will may change av1's crop size potentailly.
Signed-off-by: zhangyichix <yichix.zhang@intel.com>
1 parent 03dd2cc commit aeb0c64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_studio/mfx_lib/shared/src/mfx_common_decode_int.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ void ConvertMFXParamsToUMC(mfxVideoParam const* par, UMC::VideoStreamInfo *umcVi
124124
umcVideoParams->clip_info.height = par->mfx.FrameInfo.Height;
125125
umcVideoParams->clip_info.width = par->mfx.FrameInfo.Width;
126126

127-
umcVideoParams->disp_clip_info.height = umcVideoParams->clip_info.height;
128-
umcVideoParams->disp_clip_info.width = umcVideoParams->clip_info.width;
127+
umcVideoParams->disp_clip_info.height = par->mfx.FrameInfo.CropH;
128+
umcVideoParams->disp_clip_info.width = par->mfx.FrameInfo.CropW;
129129

130130
if(par->mfx.CodecId == MFX_CODEC_JPEG && (MFX_ROTATION_90 == par->mfx.Rotation || MFX_ROTATION_270 == par->mfx.Rotation))
131131
{

0 commit comments

Comments
 (0)