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
pull/126/head
Michael Niedermayer 16 years ago
parent 75ecf14900
commit 1d14361dec
  1. 5
      libavformat/utils.c

@ -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];

Loading…
Cancel
Save