diff -uNrp a/x264.c b/x264.c --- a/x264.c 2009-09-15 10:31:50 +0300 +++ b/x264.c 2009-09-15 13:53:26 +0300 @@ -1168,6 +1168,9 @@ static int Encode( x264_param_t *param, int64_t i_file; int i_frame_size; int i_update_interval; + #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 ); @@ -1202,6 +1205,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, i_frame_output = 0; b_ctrl_c == 0 && (i_frame < i_frame_total || i_frame_total == 0); ) { @@ -1244,6 +1251,10 @@ static int Encode( x264_param_t *param, Print_status( i_start, i_frame_output, i_frame_total, i_file, param ); } + #ifdef _WIN32 + SetConsoleTitle( originalCTitle ); + #endif + i_end = x264_mdate(); x264_picture_clean( &pic ); /* Erase progress indicator before printing encoding stats. */