History

Remove a hardcoded debug path specific to somebody's environment

Instead of using platform specific paths, just use the local directory instead, reducing the amounts of ifdefs.

Martin Storsjö committed 12 years ago

Commit 2963f4a1 parent d67fbe71 file · +1 −6Browse files

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

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+1−6
@@ -1115,12 +1115,7 @@ void CWelsH264SVCEncoder::DumpSrcPicture (const uint8_t* pSrc) { · 1114 unmodified lines
11151115 str_t strFileName[256] = {0};
11161116 const int32_t iDataLength = m_iMaxPicWidth * m_iMaxPicHeight;
11171117
1118−#if defined(__GNUC__)
1119− STRNCPY (strFileName, 256, "/tmp/pic_in_", STRNLEN ("/tmp/pic_in_", 255)); // confirmed_safe_unsafe_usage
1120−#else
1121− STRNCPY (strFileName, 256, "d:\\incoming\\mosaic_st\\pic_in_", STRNLEN ("d:\\incoming\\mosaic_st\\pic_in_",
1122− 255)); // confirmed_safe_unsafe_usage
1123−#endif//__GNUC__
1118+ STRNCPY (strFileName, 256, "pic_in_", STRNLEN ("pic_in_", 255)); // confirmed_safe_unsafe_usage
11241119
11251120 if (m_iMaxPicWidth == 640) {
11261121 STRCAT (strFileName, 256, "360p."); // confirmed_safe_unsafe_usage

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