提交 1d14361d 编写于 作者: M 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
上级 75ecf149
...@@ -2020,6 +2020,11 @@ int av_find_stream_info(AVFormatContext *ic) ...@@ -2020,6 +2020,11 @@ int av_find_stream_info(AVFormatContext *ic)
count = 0; count = 0;
read_size = 0; read_size = 0;
for(;;) { for(;;) {
if(url_interrupt_cb()){
ret= AVERROR(EINTR);
break;
}
/* check if one codec still needs to be handled */ /* check if one codec still needs to be handled */
for(i=0;i<ic->nb_streams;i++) { for(i=0;i<ic->nb_streams;i++) {
st = ic->streams[i]; st = ic->streams[i];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册