shithub: libvpx

Download patch

ref: 08955ed8e15a06a143d1b98de3632bf705c97cde
parent: 7e340614c12204fd885a5fabf7047d8af7aa51d0
parent: aa70712e4e56f5a620e833e9d9d5cfd72652b092
author: James Zern <[email protected]>
date: Fri Jul 11 11:53:05 EDT 2014

Merge "vpxenc: fix per-frame psnr/size output on a terminal"

--- a/vpxenc.c
+++ b/vpxenc.c
@@ -1686,7 +1686,6 @@
                   fps >= 1.0 ? fps : fps * 60,
                   fps >= 1.0 ? "fps" : "fpm");
           print_time("ETA", estimated_time_left);
-          fprintf(stderr, "\033[K");
         }
 
       } else
@@ -1737,6 +1736,8 @@
       }
 
       fflush(stdout);
+      if (!global.quiet)
+        fprintf(stderr, "\033[K");
     }
 
     if (stream_cnt > 1)