[FFmpeg-cvslog] r19505 - trunk/ffmpeg.c

ramiro subversion
Fri Jul 24 02:13:59 CEST 2009


Author: ramiro
Date: Fri Jul 24 02:13:59 2009
New Revision: 19505

Log:
Check for HAVE_ISATTY.
Patch by Martin Storsjo <martin at martin dot st>

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Fri Jul 24 02:12:55 2009	(r19504)
+++ trunk/ffmpeg.c	Fri Jul 24 02:13:59 2009	(r19505)
@@ -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);



More information about the ffmpeg-cvslog mailing list