From: James Zern Date: Wed, 9 Jul 2014 18:38:00 +0000 (-0700) Subject: vpxenc: fix per-frame psnr/size output on a terminal X-Git-Tag: v1.4.0~1232^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa70712e4e56f5a620e833e9d9d5cfd72652b092;p=libvpx vpxenc: fix per-frame psnr/size output on a terminal was previously being wiped out by the ctrl-K escape Change-Id: I87d0de255a174f19e8912a65e519dad99d54a530 --- 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)