diff -uNrp a/x264.c b/x264.c --- a/x264.c 2009-08-14 10:35:26 +0300 +++ b/x264.c 2009-08-14 10:39:50 +0300 @@ -1112,6 +1112,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 ); @@ -1146,6 +1149,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); ) { @@ -1192,6 +1199,10 @@ static int Encode( x264_param_t *param, fflush( stderr ); // needed in windows } } + #ifdef _WIN32 + SetConsoleTitle( originalCTitle ); + #endif + /* Flush delayed frames */ while( x264_encoder_delayed_frames( h ) ) {