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

Commit

Permalink
Calling ConvertMFXParamsToUMC will may change av1's crop size potenta…
Browse files Browse the repository at this point in the history
…illy.

Signed-off-by: zhangyichix <[email protected]>
  • Loading branch information
zhangyichix committed Aug 16, 2022
1 parent 03dd2cc commit aeb0c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _studio/mfx_lib/shared/src/mfx_common_decode_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit aeb0c64

Please sign in to comment.