ref: 98614924e2d899872d44451d63f32ba0b1599c83
parent: 771ff739b6e601d261fe01b86492c17c64ca6c08
author: Martin Storsjö <martin@martin.st>
date: Mon Jan 27 17:07:05 EST 2014
Remove the now meaningless field sTracePath
--- a/codec/encoder/core/inc/param_svc.h
+++ b/codec/encoder/core/inc/param_svc.h
@@ -113,10 +113,6 @@
SDLayerParam sDependencyLayers[MAX_DEPENDENCY_LAYER];
/* General */
-#ifdef ENABLE_TRACE_FILE
-str_t sTracePath[MAX_FNAME_LEN]; // log file for wels encoder
-#endif
-
uint32_t uiGopSize; // GOP size (at maximal frame rate: 16)
uint32_t uiIntraPeriod; // intra period (multiple of GOP size as desired)
int32_t iNumRefFrame; // number of reference frame used
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -2085,8 +2085,7 @@
if (wlog == WelsLogDefault) {
str_t fname[MAX_FNAME_LEN] = {0};
- WelsSnprintf (fname, MAX_FNAME_LEN, "%swels_svc_encoder_trace.txt",
- pCodingParam->sTracePath); // confirmed_safe_unsafe_usage
+ WelsSnprintf (fname, MAX_FNAME_LEN, "wels_svc_encoder_trace.txt");
pCtx->pFileLog = WelsFopen (fname, "wt+");
--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -407,11 +407,6 @@
InitPic (m_pSrcPicList[i], iColorspace, m_iMaxPicWidth, m_iMaxPicHeight);
}
-#if defined(OUTPUT_BIT_STREAM) || defined(ENABLE_TRACE_FILE)
- pCfg->sTracePath[0] = '\0';
-
-#endif //#if defined(OUTPUT_BIT_STREAM) || defined(ENABLE_TRACE_FILE)
-
if (WelsInitEncoderExt (&m_pEncContext, pCfg)) {
WelsLog (m_pEncContext, WELS_LOG_ERROR, "CWelsH264SVCEncoder::Initialize(), WelsInitEncoderExt failed.\n");
Uninitialize();