History

Use char instead of str_t

Martin Storsjö committed 12 years ago

Commit f2bd22a1 parent 7b96c6734 files · +131 −135Browse files

Showing the changes to codec/encoder/core/src/encoder.cpp (1 of 34 files). Show all

Unified · Split

codec/encoder/core/src/encoder.cpp+4−4
@@ -314,7 +314,7 @@ EFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum) { · 313 unmodified lines
314314 * \brief Dump reconstruction for dependency layer
315315 */
316316
317−extern "C" void DumpDependencyRec (SPicture* pCurPicture, const str_t* kpFileName, const int8_t kiDid) {
317+extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName, const int8_t kiDid) {
318318 WelsFileHandle* pDumpRecFile = NULL;
319319 static bool bDependencyRecFlag[MAX_DEPENDENCY_LAYER] = {0};
320320 int32_t iWrittenSize = 0;
@@ -326,7 +326,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const str_t* kpFileNam · 5 unmodified lines
326326 if (strlen (kpFileName) > 0) // confirmed_safe_unsafe_usage
327327 pDumpRecFile = WelsFopen (kpFileName, "ab");
328328 else {
329− str_t sDependencyRecFileName[16] = {0};
329+ char sDependencyRecFileName[16] = {0};
330330 WelsSnprintf (sDependencyRecFileName, 16, "rec%d.yuv", kiDid); // confirmed_safe_unsafe_usage
331331 pDumpRecFile = WelsFopen (sDependencyRecFileName, "ab");
332332 }
@@ -336,7 +336,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const str_t* kpFileNam · 3 unmodified lines
336336 if (strlen (kpFileName) > 0) { // confirmed_safe_unsafe_usage
337337 pDumpRecFile = WelsFopen (kpFileName, "wb");
338338 } else {
339− str_t sDependencyRecFileName[16] = {0};
339+ char sDependencyRecFileName[16] = {0};
340340 WelsSnprintf (sDependencyRecFileName, 16, "rec%d.yuv", kiDid); // confirmed_safe_unsafe_usage
341341 pDumpRecFile = WelsFopen (sDependencyRecFileName, "wb");
342342 }
@@ -382,7 +382,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const str_t* kpFileNam · 39 unmodified lines
382382 * \brief Dump the reconstruction pictures
383383 */
384384
385−void DumpRecFrame (SPicture* pCurPicture, const str_t* kpFileName) {
385+void DumpRecFrame (SPicture* pCurPicture, const char* kpFileName) {
386386 WelsFileHandle* pDumpRecFile = NULL;
387387 static bool bRecFlag = false;
388388 int32_t iWrittenSize = 0;

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