mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-05 23:34:35 +08:00
avformat: Use ff_check_interrupt
This commit is contained in:

committed by
Anton Khirnov

parent
c4a090ddb5
commit
9957cdbfd5
@ -2310,7 +2310,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
||||
count = 0;
|
||||
read_size = 0;
|
||||
for(;;) {
|
||||
if(url_interrupt_cb()){
|
||||
if (ff_check_interrupt(&ic->interrupt_callback)){
|
||||
ret= AVERROR_EXIT;
|
||||
av_log(ic, AV_LOG_DEBUG, "interrupted\n");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user