From aa70712e4e56f5a620e833e9d9d5cfd72652b092 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 9 Jul 2014 11:38:00 -0700 Subject: [PATCH] vpxenc: fix per-frame psnr/size output on a terminal was previously being wiped out by the ctrl-K escape Change-Id: I87d0de255a174f19e8912a65e519dad99d54a530 --- vpxenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vpxenc.c b/vpxenc.c index fce68075d..60ba54759 100644 --- a/vpxenc.c +++ b/vpxenc.c @@ -1686,7 +1686,6 @@ int main(int argc, const char **argv_) { 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 @@ int main(int argc, const char **argv_) { } fflush(stdout); + if (!global.quiet) + fprintf(stderr, "\033[K"); } if (stream_cnt > 1)