From c7ac08715ef6eeaf22a304fbfe129f9c8fedfe1e Mon Sep 17 00:00:00 2001 From: Shao-Feng Date: Wed, 25 Dec 2024 11:09:32 +0000 Subject: [PATCH] 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 {