diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-02-19 19:36:24 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-02-22 11:28:35 +0100 |
commit | 7fbb3b5b9857276b4cd17b2a530c7e0880d2bc0a (patch) | |
tree | 927ab993d3f7861ed2b9652dd0dd3e12f0908bc7 /libavformat/utils.c | |
parent | 5efd91284e56d444139ed811671c59a129bbb92f (diff) |
lavf: use the io_open callbacks for files opened from open_input() as well
There is no real reason to treat them differently.
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index e727c850b3..c5cc8b951c 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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; |