Skip to content

Commit

Permalink
[Encode] Change legacy 300fps limitation to 1000fps for HEVC encoding
Browse files Browse the repository at this point in the history
change function Legacy::CheckFrameRate to 1000fps limitation
  • Loading branch information
SenlinGe authored and gfxVPLsdm committed May 27, 2024
1 parent 4ad0d7b commit 542df1f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3999,9 +3999,9 @@ mfxStatus Legacy::CheckFrameRate(mfxVideoParam & par)
{
auto& fi = par.mfx.FrameInfo;

if (fi.FrameRateExtN && fi.FrameRateExtD) // FR <= 300
if (fi.FrameRateExtN && fi.FrameRateExtD) // FR <= 1000
{
if (fi.FrameRateExtN > mfxU32(300 * fi.FrameRateExtD))
if (fi.FrameRateExtN > mfxU32(1000 * fi.FrameRateExtD))
{
fi.FrameRateExtN = fi.FrameRateExtD = 0;
MFX_RETURN(MFX_ERR_UNSUPPORTED);
Expand Down

0 comments on commit 542df1f

Please sign in to comment.