[FFmpeg-devel] [PATCH] Add option to disable termios.h usage
Thu Mar 10 16:52:23 CET 2011
Takis Issaris <t4k1s at yahoo.com> writes:
> Hi Nicolas,
> ----- Original Message ----
>> From: Nicolas George <nicolas.george at normalesup.org>
>> To: FFmpeg development discussions and patches <ffmpeg-devel at mplayerhq.hu>
>> Cc: panagiotis at gmail.com
>> Sent: Mon, March 7, 2011 1:33:36 PM
>> Subject: Re: [FFmpeg-devel] [PATCH] Add option to disable termios.h usage
>> Le sextidi 16 vent?se, an CCXIX, Takis Issaris a ?crit :
>> > The attached patch adds an ffmpeg commandline option to allow one to disable
>> > ffmpeg using tcgetattr and tcsetattr to modify terminal parameters.
>> ffmpeg ... < /dev/null
> Why would this work? tcsetattr is invoked regardless of where stdin
> comes from.
tcsetattr() is called with 0 as file descriptor, so if stdin is
redirected it will leave the tty alone.
mans at mansr.com
More information about the ffmpeg-devel