Windows: fix bug that line buffering doesn't work properly

This commit is contained in:
李通洲
2023-01-12 00:11:25 +08:00
parent c4aa55d522
commit 387b8298bd
3 changed files with 10 additions and 1 deletions
+4
View File
@@ -1482,6 +1482,10 @@ int main(int argc, const char** argv)
ffStart(&instance);
#if defined(_WIN32) && defined(FF_ENABLE_BUFFER)
fflush(stdout);
#endif
//Parse the structure and call the modules
uint32_t startIndex = 0;
while (startIndex < data.structure.length)