[x264-devel] commit: Fix ctrl-C termation message with few frames encoded ( Anton Mitrofanov )

git version control git at videolan.org
Wed Oct 7 03:27:44 CEST 2009


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Sat Sep 26 12:42:46 2009 -0700| [a4334d41ea61b70fcff308ba988193309bb5608a] | committer: Jason Garrett-Glaser 

Fix ctrl-C termation message with few frames encoded

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=a4334d41ea61b70fcff308ba988193309bb5608a
---

 x264.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/x264.c b/x264.c
index f7786ce..9c5a928 100644
--- a/x264.c
+++ b/x264.c
@@ -1260,14 +1260,14 @@ static int  Encode( x264_param_t *param, cli_opt_t *opt )
     p_close_infile( opt->hin );
     p_close_outfile( opt->hout );
 
-    if( i_frame > 0 )
+    if( i_frame_output > 0 )
     {
-        double fps = (double)i_frame * (double)1000000 /
+        double fps = (double)i_frame_output * (double)1000000 /
                      (double)( i_end - i_start );
 
         fprintf( stderr, "encoded %d frames, %.2f fps, %.2f kb/s\n", i_frame_output, fps,
                  (double) i_file * 8 * param->i_fps_num /
-                 ( (double) param->i_fps_den * i_frame * 1000 ) );
+                 ( (double) param->i_fps_den * i_frame_output * 1000 ) );
     }
 
     return 0;



More information about the x264-devel mailing list