mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 02:20:07 +01:00
lavf: use the io_open callbacks for files opened from open_input() as well
There is no real reason to treat them differently.
This commit is contained in:
@@ -200,8 +200,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_open2(&s->pb, filename, AVIO_FLAG_READ,
|
||||
&s->interrupt_callback, options)) < 0)
|
||||
ret = s->io_open(s, &s->pb, filename, AVIO_FLAG_READ, options);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
if (s->iformat)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user