diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-05-07 09:34:10 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-05-10 07:49:19 +0200 |
commit | 467f157fc65045a7a60b0360d4503ba1e665da0a (patch) | |
tree | 55733f714e8fedda5ef1691e362f9d0754a9a20c /libavformat/utils.c | |
parent | 6aca6146d9a89e4344c13870052214698b40f6fd (diff) |
avformat/utils: Move ff_format_io_close.* to options.c, avformat.c
These are not pure avio-functions, but auxiliary AVFormatContext
functions.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 667ed0c4c5..cf4d68bff9 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -575,24 +575,6 @@ int avformat_network_deinit(void) return 0; } -void ff_format_io_close_default(AVFormatContext *s, AVIOContext *pb) -{ - avio_close(pb); -} - -int ff_format_io_close(AVFormatContext *s, AVIOContext **pb) -{ - int ret = 0; - if (*pb) { - if (s->io_close == ff_format_io_close_default || s->io_close == NULL) - ret = s->io_close2(s, *pb); - else - s->io_close(s, *pb); - } - *pb = NULL; - return ret; -} - int ff_is_http_proto(const char *filename) { const char *proto = avio_find_protocol_name(filename); return proto ? (!av_strcasecmp(proto, "http") || !av_strcasecmp(proto, "https")) : 0; |