Commit 993298ec authored by michael's avatar michael

Register intrrupt_cb() early enough so we dont get stuck with tcp input

for example.
Fixes issue66



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13992 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2c20f0e7
...@@ -3785,6 +3785,9 @@ int main(int argc, char **argv) ...@@ -3785,6 +3785,9 @@ int main(int argc, char **argv)
avdevice_register_all(); avdevice_register_all();
av_register_all(); av_register_all();
if(isatty(STDIN_FILENO))
url_set_interrupt_cb(decode_interrupt_cb);
for(i=0; i<CODEC_TYPE_NB; i++){ for(i=0; i<CODEC_TYPE_NB; i++){
avctx_opts[i]= avcodec_alloc_context2(i); avctx_opts[i]= avcodec_alloc_context2(i);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment