summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-26 13:48:18 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-03 23:21:57 +0200
commitd09776d48651eeba10e1b5f2e5fba612b48b95f4 (patch)
treebd5551ae3b10aeb75e64c0193e0cb8084636cb31 /libavformat/avio.c
parente4beb307ab26816128678235641a13dfdb8d07d0 (diff)
avformat/avio: Schedule AVIODirContext to become an opaque type
Users can't make anything with its content. Making it opaque might allow us to avoid one level of indirection. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 4846bbd8c6..ab1c19a58d 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -528,6 +528,12 @@ int ffurl_delete(const char *url)
return ret;
}
+#if !FF_API_AVIODIRCONTEXT
+struct AVIODirContext {
+ struct URLContext *url_context;
+};
+#endif
+
int avio_open_dir(AVIODirContext **s, const char *url, AVDictionary **options)
{
URLContext *h = NULL;