From 28b533af6c79e545b17533a4f04f6a5cda65e81c Mon Sep 17 00:00:00 2001 From: Mohu Date: Mon, 1 Apr 2024 15:45:51 +0800 Subject: [PATCH] Fix WelsTraceCallback conversion. (#3722) Signed-off-by: ayamir --- 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 636c0cc60..41ef05f5e 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.",