1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Martin Storsjö 2009-07-24 00:13:59 +00:00 committed by Ramiro Polla
parent abfc8d056e
commit a2f4324bb6

View File

@ -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);