This reduces the amount of platform ifdefs.
Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 4 files). Show all
Unified · Split
| @@ -428,11 +428,7 @@ int32_t RequestMtResource (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPara · 427 unmodified lines | ||
| 428 | 428 | fclose (pSmt->pFSliceDiff); |
| 429 | 429 | pSmt->pFSliceDiff = NULL; |
| 430 | 430 | } |
| 431 | −#ifdef _WIN32 | |
| 432 | − pSmt->pFSliceDiff = fopen (".\\slice_time.txt", "wt+"); | |
| 433 | −#else | |
| 434 | − pSmt->pFSliceDiff = fopen ("/tmp/slice_time.txt", "wt+"); | |
| 435 | −#endif//_WIN32 | |
| 431 | + pSmt->pFSliceDiff = fopen ("slice_time.txt", "wt+"); | |
| 436 | 432 | #endif//MT_DEBUG |
| 437 | 433 | |
| 438 | 434 | #if defined(ENABLE_TRACE_MT) |