shithub: libvpx

Download patch

ref: aa70712e4e56f5a620e833e9d9d5cfd72652b092
parent: 8abbd37d21b0e15b3a3120685e3819dc2ac70f09
author: James Zern <jzern@google.com>
date: Wed Jul 9 07:38:00 EDT 2014

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

was previously being wiped out by the ctrl-K escape

Change-Id: I87d0de255a174f19e8912a65e519dad99d54a530

--- 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)