diff -uNrp c/x264.c b/x264.c --- c/x264.c 2010-02-25 11:22:11 +0200 +++ b/x264.c 2010-02-25 11:23:52 +0200 @@ -1352,6 +1352,9 @@ static int Encode( x264_param_t *param, int prev_timebase_den = param->i_timebase_den / gcd( param->i_timebase_num, param->i_timebase_den ); int dts_compress_multiplier; int64_t pulldown_pts = 0; + #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 ); @@ -1431,6 +1434,11 @@ 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); ) { @@ -1511,6 +1519,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. */