aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2009-07-24 00:13:59 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-07-24 00:13:59 +0000
commita2f4324bb649472b05a2f054c604fbddcc723ee1 (patch)
tree73559fc12a131a63e08d1cd02757acb8bb4ae263 /ffmpeg.c
parentabfc8d056ea99fe69b656dd21f7fdc1e32eaa41f (diff)
downloadffmpeg-a2f4324bb649472b05a2f054c604fbddcc723ee1.tar.gz
Check for HAVE_ISATTY.
Patch by Martin Storsjö <martin at martin dot st> Originally committed as revision 19505 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 643166f939..b7fe947aa1 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);