MCPcopy Create free account
hub / github.com/cisco/openh264 / CodecTrace

Method CodecTrace

codec/common/src/welsCodecTrace.cpp:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void 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
87void welsCodecTrace::SetCodecInstance (void* pCodecInstance) {
88 m_sLogCtx.pCodecInstance = pCodecInstance;

Callers 1

StaticCodecTraceMethod · 0.95

Calls 1

WelsVsnprintfFunction · 0.85

Tested by

no test coverage detected