From f86f0e47ef28fdf33b15a64eac8359cc1a88dfe6 Mon Sep 17 00:00:00 2001 From: BenzhengZhang <140143892+BenzhengZhang@users.noreply.github.com> Date: Mon, 1 Apr 2024 17:24:21 +0800 Subject: [PATCH] Revert "Fix WelsTraceCallback conversion. (#3722)" (#3739) This reverts commit 28b533af6c79e545b17533a4f04f6a5cda65e81c. --- codec/encoder/plus/src/welsEncoderExt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/encoder/plus/src/welsEncoderExt.cpp b/codec/encoder/plus/src/welsEncoderExt.cpp index 41ef05f5e8..636c0cc609 100644 --- a/codec/encoder/plus/src/welsEncoderExt.cpp +++ b/codec/encoder/plus/src/welsEncoderExt.cpp @@ -1092,7 +1092,7 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { break; case ENCODER_OPTION_TRACE_CALLBACK: { if (m_pWelsTrace) { - WelsTraceCallback callback = (WelsTraceCallback)pOption; + WelsTraceCallback callback = * ((WelsTraceCallback*)pOption); m_pWelsTrace->SetTraceCallback (callback); WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_TRACE_CALLBACK callback = %p.",