diff -uNrp c/x264.c b/x264.c --- c/x264.c 2010-03-29 13:03:29 +0300 +++ b/x264.c 2010-03-29 13:04:52 +0300 @@ -1404,6 +1404,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; double 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 ); @@ -1482,6 +1485,10 @@ static int Encode( x264_param_t *param, if( opt->tcfile_out ) fprintf( opt->tcfile_out, "# timecode format v2\n" ); + #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); ) { @@ -1570,6 +1577,10 @@ static int Encode( x264_param_t *param, if( !(opt->i_pulldown && !param->b_vfr_input) ) duration *= dts_compress_multiplier; + #ifdef _WIN32 + SetConsoleTitle( originalCTitle ); + #endif + i_end = x264_mdate(); input.picture_clean( &pic ); /* Erase progress indicator before printing encoding stats. */