History

Use WelsSnprintf instead of SNPRINTF

Martin Storsjö committed 12 years ago

Commit f6fe4dd1 parent 6fea0846 files · +29 −117Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 6 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+2−13
@@ -2085,19 +2085,8 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 2084 unmodified lines
2085 if (wlog == WelsLogDefault) {2085 if (wlog == WelsLogDefault) {
2086 str_t fname[MAX_FNAME_LEN] = {0};2086 str_t fname[MAX_FNAME_LEN] = {0};
2087 2087
2088#if defined (_MSC_VER)2088 WelsSnprintf (fname, MAX_FNAME_LEN, "%swels_svc_encoder_trace.txt",
2089#if _MSC_VER>=15002089 pCodingParam->sTracePath); // confirmed_safe_unsafe_usage
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
2101 2090
2102 2091
2103 pCtx->pFileLog = WelsFopen (fname, "wt+");2092 pCtx->pFileLog = WelsFopen (fname, "wt+");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t