MSDN docs claim that SetConsoleTitle's effect is reverted when the process terminates, but this doesn't always work properly.
Accordingly, manually revert the console title at the end of encoding.
#ifdef _WIN32
#include <windows.h>
#else
+#define GetConsoleTitle(t,n)
#define SetConsoleTitle(t)
#endif
double duration;
double pulldown_pts = 0;
int retval = 0;
+ char UNUSED originalCTitle[200] = "";
+
+ GetConsoleTitle( originalCTitle, sizeof(originalCTitle) );
opt->b_progress &= param->i_log_level < X264_LOG_DEBUG;
i_update_interval = param->i_frame_total ? x264_clip3( param->i_frame_total / 1000, 1, 10 ) : 10;
(double) i_file * 8 / ( 1000 * duration ) );
}
+ SetConsoleTitle( originalCTitle );
+
return retval;
}