# HG changeset patch # User michael # Date 1235356725 0 # Node ID d86307d39b6d9366f0441d3d22efe29de80c589e # Parent 90e0047f90b624aeb47927ecd127ac2538de05f8 Allow av_find_stream_info() to be aborted. Based on a patch by netgem. diff -r 90e0047f90b6 -r d86307d39b6d utils.c --- a/utils.c Sun Feb 22 14:27:50 2009 +0000 +++ b/utils.c Mon Feb 23 02:38:45 2009 +0000 @@ -2020,6 +2020,11 @@ count = 0; read_size = 0; for(;;) { + if(url_interrupt_cb()){ + ret= AVERROR(EINTR); + break; + } + /* check if one codec still needs to be handled */ for(i=0;inb_streams;i++) { st = ic->streams[i];