Simplify debugging code by always writing trace files to the current directory
Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 6 files). Show all
Unified · Split
| @@ -407,20 +407,6 @@ int CWelsH264SVCEncoder::Initialize2 (void* argv, const INIT_TYPE iInitType) { · 406 unmodified lines | ||
| 407 | 407 | InitPic (m_pSrcPicList[i], iColorspace, m_iMaxPicWidth, m_iMaxPicHeight); |
| 408 | 408 | } |
| 409 | 409 | |
| 410 | −#if defined(OUTPUT_BIT_STREAM) || defined(ENABLE_TRACE_FILE) | |
| 411 | − str_t fpath[MAX_FNAME_LEN] = {0}; | |
| 412 | −#if defined(__GNUC__) | |
| 413 | − WelsSnprintf (fpath, MAX_FNAME_LEN, "/tmp/"); // confirmed_safe_unsafe_usage | |
| 414 | − | |
| 415 | −#else//__GNUC__ | |
| 416 | − | |
| 417 | − WelsSnprintf (fpath, MAX_FNAME_LEN, ".\\"); // confirmed_safe_unsafe_usage | |
| 418 | −#endif //__GNUC__ | |
| 419 | − | |
| 420 | − strcpy (pCfg->sTracePath, fpath); // confirmed_safe_unsafe_usage | |
| 421 | − | |
| 422 | −#endif //#if defined(OUTPUT_BIT_STREAM) || defined(ENABLE_TRACE_FILE) | |
| 423 | − | |
| 424 | 410 | if (WelsInitEncoderExt (&m_pEncContext, pCfg)) { |
| 425 | 411 | WelsLog (m_pEncContext, WELS_LOG_ERROR, "CWelsH264SVCEncoder::Initialize(), WelsInitEncoderExt failed.\n"); |
| 426 | 412 | Uninitialize(); |