History

Simplify debugging code - always write debug trace files to the cur directory

This reduces the amount of platform ifdefs.

Martin Storsjö committed 12 years ago

Commit 771ff731 parent e17e6644 files · +5 −26Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 4 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+1−10
@@ -408,16 +408,7 @@ int CWelsH264SVCEncoder::Initialize2 (void* argv, const INIT_TYPE iInitType) { · 407 unmodified lines
408408 }
409409
410410 #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';
421412
422413 #endif //#if defined(OUTPUT_BIT_STREAM) || defined(ENABLE_TRACE_FILE)
423414

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