This reduces the amount of platform ifdefs.
Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 4 files). Show all
Unified · Split
| @@ -408,16 +408,7 @@ int CWelsH264SVCEncoder::Initialize2 (void* argv, const INIT_TYPE iInitType) { · 407 unmodified lines | ||
| 408 | 408 | } |
| 409 | 409 | |
| 410 | 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 | |
| 411 | + pCfg->sTracePath[0] = '\0'; | |
| 421 | 412 | |
| 422 | 413 | #endif //#if defined(OUTPUT_BIT_STREAM) || defined(ENABLE_TRACE_FILE) |
| 423 | 414 | |