From 542df1fdb150565b6188a320d4c0359732a7d44f Mon Sep 17 00:00:00 2001 From: "Ge, Senlin" Date: Fri, 24 May 2024 07:16:29 +0000 Subject: [PATCH] [Encode] Change legacy 300fps limitation to 1000fps for HEVC encoding change function Legacy::CheckFrameRate to 1000fps limitation --- .../encode_hw/hevc/agnostic/base/hevcehw_base_legacy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_studio/mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_legacy.cpp b/_studio/mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_legacy.cpp index 21889405d6..2231e4e490 100644 --- a/_studio/mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_legacy.cpp +++ b/_studio/mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_legacy.cpp @@ -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);