| 73 | } |
| 74 | |
| 75 | void welsCodecTrace::CodecTrace (const int32_t iLevel, const char* Str_Format, va_list vl) { |
| 76 | if (m_iTraceLevel < iLevel) { |
| 77 | return; |
| 78 | } |
| 79 | |
| 80 | char pBuf[MAX_LOG_SIZE] = {0}; |
| 81 | WelsVsnprintf (pBuf, MAX_LOG_SIZE, Str_Format, vl); // confirmed_safe_unsafe_usage |
| 82 | if (m_fpTrace) { |
| 83 | m_fpTrace (m_pTraceCtx, iLevel, pBuf); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | void welsCodecTrace::SetCodecInstance (void* pCodecInstance) { |
| 88 | m_sLogCtx.pCodecInstance = pCodecInstance; |
no test coverage detected