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

michael subversion
Thu Jun 26 22:50:15 CEST 2008


Author: michael
Date: Thu Jun 26 22:50:15 2008
New Revision: 13992

Log:
Register intrrupt_cb() early enough so we dont get stuck with tcp input
for example.
Fixes issue66



Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Thu Jun 26 22:50:15 2008
@@ -3785,6 +3785,9 @@ int main(int argc, char **argv)
     avdevice_register_all();
     av_register_all();
 
+    if(isatty(STDIN_FILENO))
+        url_set_interrupt_cb(decode_interrupt_cb);
+
     for(i=0; i<CODEC_TYPE_NB; i++){
         avctx_opts[i]= avcodec_alloc_context2(i);
     }




More information about the ffmpeg-cvslog mailing list