Instead of using platform specific paths, just use the local directory instead, reducing the amounts of ifdefs.
Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1115,12 +1115,7 @@ void CWelsH264SVCEncoder::DumpSrcPicture (const uint8_t* pSrc) { · 1114 unmodified lines | |||
| 1115 | str_t strFileName[256] = {0}; | 1115 | str_t strFileName[256] = {0}; |
| 1116 | const int32_t iDataLength = m_iMaxPicWidth * m_iMaxPicHeight; | 1116 | const int32_t iDataLength = m_iMaxPicWidth * m_iMaxPicHeight; |
| 1117 | 1117 | ||
| 1118 | #if defined(__GNUC__) | 1118 | STRNCPY (strFileName, 256, "pic_in_", STRNLEN ("pic_in_", 255)); // confirmed_safe_unsafe_usage |
| 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__ | ||
| 1124 | 1119 | ||
| 1125 | if (m_iMaxPicWidth == 640) { | 1120 | if (m_iMaxPicWidth == 640) { |
| 1126 | STRCAT (strFileName, 256, "360p."); // confirmed_safe_unsafe_usage | 1121 | STRCAT (strFileName, 256, "360p."); // confirmed_safe_unsafe_usage |