From: Loren Merritt Date: Mon, 18 Apr 2005 02:00:58 +0000 (+0000) Subject: 10l (CLI: fflush after progress update) X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=1519835f0fa218993ed031a2247ec88eb5906dd7;p=x264.git 10l (CLI: fflush after progress update) git-svn-id: svn://svn.videolan.org/x264/trunk@209 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/x264.c b/x264.c index 3682e24f..3ffb9c11 100644 --- a/x264.c +++ b/x264.c @@ -920,7 +920,8 @@ static int Encode( x264_param_t *param, hnd_t hin, hnd_t hout, int b_progress double fps = i_elapsed > 0 ? i_frame * 1000000. / i_elapsed : 0; i_progress = i_frame * 1000 / i_frame_total; fprintf( stderr, "encoded frames: %d/%d (%.1f%%), %.2f fps \r", i_frame, - i_frame_total, (float)i_progress / 10, fps); + i_frame_total, (float)i_progress / 10, fps ); + fflush( stderr ); // needed in windows } } /* Flush delayed B-frames */