Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 6 files). Show all
Unified · Split
| @@ -2085,19 +2085,8 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 2084 unmodified lines | ||
| 2085 | 2085 | if (wlog == WelsLogDefault) { |
| 2086 | 2086 | str_t fname[MAX_FNAME_LEN] = {0}; |
| 2087 | 2087 | |
| 2088 | −#if defined (_MSC_VER) | |
| 2089 | −#if _MSC_VER>=1500 | |
| 2090 | − SNPRINTF (fname, MAX_FNAME_LEN, MAX_FNAME_LEN, "%swels_svc_encoder_trace.txt", | |
| 2091 | − pCodingParam->sTracePath); // confirmed_safe_unsafe_usage | |
| 2092 | −#else | |
| 2093 | − SNPRINTF (fname, MAX_FNAME_LEN, "%swels_svc_encoder_trace.txt", | |
| 2094 | − pCodingParam->sTracePath); // confirmed_safe_unsafe_usage | |
| 2095 | −#endif//_MSC_VER>=1500 | |
| 2096 | −#else | |
| 2097 | − //GNUC/ | |
| 2098 | − SNPRINTF (fname, MAX_FNAME_LEN, "%swels_svc_encoder_trace.txt", | |
| 2099 | − pCodingParam->sTracePath); // confirmed_safe_unsafe_usage | |
| 2100 | −#endif//_MSC_VER | |
| 2088 | + WelsSnprintf (fname, MAX_FNAME_LEN, "%swels_svc_encoder_trace.txt", | |
| 2089 | + pCodingParam->sTracePath); // confirmed_safe_unsafe_usage | |
| 2101 | 2090 | |
| 2102 | 2091 | |
| 2103 | 2092 | pCtx->pFileLog = WelsFopen (fname, "wt+"); |