diff -uNrp c/x264.c b/x264.c --- c/x264.c 2010-01-31 19:56:53 +0200 +++ b/x264.c 2010-01-31 19:58:00 +0200 @@ -1478,6 +1478,9 @@ static int Encode( x264_param_t *param, double duration; int prev_timebase_den = param->i_timebase_den / gcd( param->i_timebase_num, param->i_timebase_den ); int dts_compress_multiplier; + #ifdef _WIN32 + char originalCTitle[200]; + #endif opt->b_progress &= param->i_log_level < X264_LOG_DEBUG; i_frame_total = input.get_frame_total( opt->hin ); @@ -1545,6 +1548,10 @@ static int Encode( x264_param_t *param, return -1; } + #ifdef _WIN32 + GetConsoleTitle( originalCTitle, 200 ); + #endif + /* Encode frames */ for( i_frame = 0, i_frame_output = 0; b_ctrl_c == 0 && (i_frame < i_frame_total || i_frame_total == 0); ) { @@ -1616,6 +1623,10 @@ static int Encode( x264_param_t *param, duration = (double)(2 * largest_pts - second_largest_pts) * param->i_timebase_num / param->i_timebase_den; duration *= dts_compress_multiplier; + #ifdef _WIN32 + SetConsoleTitle( originalCTitle ); + #endif + i_end = x264_mdate(); input.picture_clean( &pic ); /* Erase progress indicator before printing encoding stats. */