avformat: Use avio_open2, pass the AVFormatContext interrupt_callback onwards
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
committed by
Anton Khirnov
parent
1dee0aca74
commit
9d77a8faf9
@@ -593,7 +593,8 @@ static int init_input(AVFormatContext *s, const char *filename)
|
||||
(!s->iformat && (s->iformat = av_probe_input_format(&pd, 0))))
|
||||
return 0;
|
||||
|
||||
if ((ret = avio_open(&s->pb, filename, AVIO_FLAG_READ)) < 0)
|
||||
if ((ret = avio_open2(&s->pb, filename, AVIO_FLAG_READ,
|
||||
&s->interrupt_callback, NULL)) < 0)
|
||||
return ret;
|
||||
if (s->iformat)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user