Skip to content

Commit

Permalink
avce: fixed AVBRSupport check (#5777)
Browse files Browse the repository at this point in the history
Co-authored-by: Miroslav Goncharenko <[email protected]>
  • Loading branch information
gfxVPLsdm and mgonchar authored Sep 11, 2023
1 parent 90e48b1 commit b8316ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_vaapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1595,8 +1595,8 @@ mfxStatus VAAPIEncoder::CreateAuxilliaryDevice(
m_caps.ddi_caps.QVBRBRCSupport = !!(AV(VAConfigAttribRateControl) & VA_RC_QVBR);
#endif
#if VA_CHECK_VERSION(1,3,0)
m_caps.AVBRSupport = !!(AV(VAConfigAttribRateControl) & VA_RC_AVBR);
m_caps.AVBRSupport = H264ECaps::IsVmeSupported(m_core->GetHWType());
m_caps.AVBRSupport = !!(AV(VAConfigAttribRateControl) & VA_RC_AVBR)
&& H264ECaps::IsVmeSupported(m_core->GetHWType());
#endif
#if VA_CHECK_VERSION(1, 10, 0)
m_caps.ddi_caps.TCBRCSupport = !!(AV(VAConfigAttribRateControl) & VA_RC_TCBRC);
Expand Down

0 comments on commit b8316ff

Please sign in to comment.