diff -uNrp a/x264.c b/x264.c --- a/x264.c 2008-09-24 23:45:03 +0300 +++ b/x264.c 2008-09-25 14:03:37 +0300 @@ -787,6 +787,9 @@ static int Encode( x264_param_t *param, int i_frame_size; int i_update_interval; char buf[200]; + #ifdef _WIN32 + char originalCTitle[200]; + #endif opt->b_progress &= param->i_log_level < X264_LOG_DEBUG; i_frame_total = p_get_frame_total( opt->hin ); @@ -817,6 +820,10 @@ static int Encode( x264_param_t *param, i_start = x264_mdate(); + #ifdef _WIN32 + GetConsoleTitle( originalCTitle, 200 ); + #endif + /* Encode frames */ for( i_frame = 0, i_file = 0; b_ctrl_c == 0 && (i_frame < i_frame_total || i_frame_total == 0); ) { @@ -860,6 +867,10 @@ static int Encode( x264_param_t *param, fflush( stderr ); // needed in windows } } + #ifdef _WIN32 + SetConsoleTitle( originalCTitle ); + #endif + /* Flush delayed B-frames */ do { i_file +=