From a2f4324bb649472b05a2f054c604fbddcc723ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st> Date: Fri, 24 Jul 2009 00:13:59 +0000 Subject: [PATCH] =?UTF-8?q?Check=20for=20HAVE=5FISATTY.=20Patch=20by=20Mar?= =?UTF-8?q?tin=20Storsj=C3=B6=20<martin=20at=20martin=20dot=20st>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 19505 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 643166f9391..b7fe947aa1f 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -3968,8 +3968,10 @@ int main(int argc, char **argv) avdevice_register_all(); av_register_all(); +#if HAVE_ISATTY if(isatty(STDIN_FILENO)) url_set_interrupt_cb(decode_interrupt_cb); +#endif for(i=0; i<CODEC_TYPE_NB; i++){ avcodec_opts[i]= avcodec_alloc_context2(i); -- GitLab