Merge pull request #242 from mstorsjo/simplify-debug-file-locations

Simplify debugging code by always writing trace files to the current directory
This commit is contained in:
Ethan Hugg
2014-01-27 13:04:29 -08:00
6 changed files with 5 additions and 36 deletions

View File

@@ -2085,8 +2085,7 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar
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+");