From 10d64d442d22f93db2d04af47ff533788acc19b2 Mon Sep 17 00:00:00 2001 From: Shao-Feng Date: Wed, 25 Dec 2024 09:28:55 +0000 Subject: [PATCH 1/2] Return resolution_change once parameter is changed Signed-off-by: Shao-Feng --- _studio/mfx_lib/decode/h264/src/mfx_h264_dec_decode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/_studio/mfx_lib/decode/h264/src/mfx_h264_dec_decode.cpp b/_studio/mfx_lib/decode/h264/src/mfx_h264_dec_decode.cpp index f0580f12..5d93ca4b 100644 --- a/_studio/mfx_lib/decode/h264/src/mfx_h264_dec_decode.cpp +++ b/_studio/mfx_lib/decode/h264/src/mfx_h264_dec_decode.cpp @@ -1258,6 +1258,7 @@ mfxStatus VideoDECODEH264::DecodeFrameCheck(mfxBitstream *bs, mfxFrameSurface1 * } MFX_CHECK(umcRes != UMC::UMC_NTF_NEW_RESOLUTION, MFX_ERR_INCOMPATIBLE_VIDEO_PARAM); + MFX_CHECK(sts != MFX_WRN_VIDEO_PARAM_CHANGED, MFX_ERR_INCOMPATIBLE_VIDEO_PARAM); } if (umcRes == UMC::UMC_ERR_INVALID_STREAM) From 6e08b9662e4c32d56bd9098bed4b261437e5a531 Mon Sep 17 00:00:00 2001 From: Shao-Feng Date: Wed, 25 Dec 2024 11:09:32 +0000 Subject: [PATCH 2/2] Return resolution_change once parameter is changed in H265 Signed-off-by: Shao-Feng --- _studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp b/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp index b7e5a82d..365f5cac 100644 --- a/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp +++ b/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp @@ -1050,7 +1050,8 @@ mfxStatus VideoDECODEH265::DecodeFrameCheck(mfxBitstream *bs, mfxFrameSurface1 * { if (!m_isFirstRun) { - sts = MFX_WRN_VIDEO_PARAM_CHANGED; + //sts = MFX_WRN_VIDEO_PARAM_CHANGED; + sts = MFX_ERR_INCOMPATIBLE_VIDEO_PARAM; } else {