Commit 1d14361d authored by Michael Niedermayer's avatar Michael Niedermayer

Allow av_find_stream_info() to be aborted.

Based on a patch by netgem.

Originally committed as revision 17538 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 75ecf149
......@@ -2020,6 +2020,11 @@ int av_find_stream_info(AVFormatContext *ic)
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;i<ic->nb_streams;i++) {
st = ic->streams[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