You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffmpeg: modify tty state when stderr is redirected
This fixes Ticket2964 Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
1919827f2c
commit
92e62f49cf
2
ffmpeg.c
2
ffmpeg.c
@@ -372,7 +372,7 @@ void term_init(void)
|
|||||||
struct termios tty;
|
struct termios tty;
|
||||||
int istty = 1;
|
int istty = 1;
|
||||||
#if HAVE_ISATTY
|
#if HAVE_ISATTY
|
||||||
istty = isatty(0) && isatty(2);
|
istty = isatty(0);
|
||||||
#endif
|
#endif
|
||||||
if (istty && tcgetattr (0, &tty) == 0) {
|
if (istty && tcgetattr (0, &tty) == 0) {
|
||||||
oldtty = tty;
|
oldtty = tty;
|
||||||
|
Reference in New Issue
Block a user