ffmpeg: modify tty state when stderr is redirected
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Mon, 27 Jul 2015 13:56:25 +0000 (09:56 -0400)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 30 Jul 2015 12:31:26 +0000 (14:31 +0200)
This fixes Ticket2964

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffmpeg.c

index 5575e2f..eb3f613 100644 (file)
--- 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;