mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
Register intrrupt_cb() early enough so we dont get stuck with tcp input
for example. Fixes issue66 Originally committed as revision 13992 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
dce292bb35
commit
b86f5a02ea
3
ffmpeg.c
3
ffmpeg.c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user