summaryrefslogtreecommitdiff
path: root/libavformat/options.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-07 09:34:10 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-10 07:49:19 +0200
commit467f157fc65045a7a60b0360d4503ba1e665da0a (patch)
tree55733f714e8fedda5ef1691e362f9d0754a9a20c /libavformat/options.c
parent6aca6146d9a89e4344c13870052214698b40f6fd (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/options.c')
-rw-r--r--libavformat/options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/options.c b/libavformat/options.c
index d306c86c63..0079a06d9a 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -151,6 +151,11 @@ static int io_open_default(AVFormatContext *s, AVIOContext **pb,
return ffio_open_whitelist(pb, url, flags, &s->interrupt_callback, options, s->protocol_whitelist, s->protocol_blacklist);
}
+void ff_format_io_close_default(AVFormatContext *s, AVIOContext *pb)
+{
+ avio_close(pb);
+}
+
static int io_close2_default(AVFormatContext *s, AVIOContext *pb)
{
return avio_close(pb);