diff -uNrp c/x264.c b/x264.c --- c/x264.c 2010-01-20 23:41:51 +0200 +++ b/x264.c 2010-01-20 23:51:25 +0200 @@ -1448,6 +1448,9 @@ static int Encode( x264_param_t *param, int64_t second_largest_pts = -1; int64_t ticks_per_frame; double duration; + #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 ); @@ -1514,6 +1517,10 @@ static int Encode( x264_param_t *param, } CLOSE_LOG; + #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); ) { @@ -1584,6 +1591,10 @@ static int Encode( x264_param_t *param, else duration = (double)(2 * largest_pts - second_largest_pts) * param->i_timebase_num / param->i_timebase_den; + #ifdef _WIN32 + SetConsoleTitle( originalCTitle ); + #endif + i_end = x264_mdate(); input.picture_clean( &pic ); /* Erase progress indicator before printing encoding stats. */