Skip to content

Commit

Permalink
[Deocde] Fix AV1 Realloc surface for LST case (#6282)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuan, Pengxin <[email protected]>
  • Loading branch information
gfxVPLsdm and pengxin99 authored Dec 18, 2023
1 parent 66f1b4d commit c9b3665
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _studio/mfx_lib/decode/av1/src/mfx_av1_dec_decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,11 +982,12 @@ mfxStatus VideoDECODEAV1::SubmitFrame(mfxBitstream* bs, mfxFrameSurface1* surfac
UMC_AV1_DECODER::AV1DecoderParams vp;
umcRes = m_decoder->GetInfo(&vp);
FillVideoParam(&vp, &m_video_par);
if (surface_work &&
// Realloc surface here for LST case which DRC happended in the last frame
if (surface_work && vp.lst_mode &&
(m_video_par.mfx.FrameInfo.Width > surface_work->Info.Width ||
m_video_par.mfx.FrameInfo.Height > surface_work->Info.Height))
{
MFX_RETURN(MFX_ERR_INCOMPATIBLE_VIDEO_PARAM);
MFX_RETURN(MFX_ERR_REALLOC_SURFACE);
}
m_video_par.AsyncDepth = static_cast<mfxU16>(vp.async_depth);
}
Expand Down

0 comments on commit c9b3665

Please sign in to comment.