From 92e62f49cf7440a9e8998d284528e223c0948c97 Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Mon, 27 Jul 2015 09:56:25 -0400 Subject: ffmpeg: modify tty state when stderr is redirected This fixes Ticket2964 Signed-off-by: Ganesh Ajjanagadde Signed-off-by: Michael Niedermayer --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 5575e2f..eb3f613 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -372,7 +372,7 @@ void term_init(void) struct termios tty; int istty = 1; #if HAVE_ISATTY - istty = isatty(0) && isatty(2); + istty = isatty(0); #endif if (istty && tcgetattr (0, &tty) == 0) { oldtty = tty; -- cgit v1.1