mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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
This commit is contained in:
parent
75ecf14900
commit
1d14361dec
@ -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…
Reference in New Issue
Block a user