summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
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.h
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.h')
-rw-r--r--libavformat/avio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 36c3d7b430..7e4aa9a1c8 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -101,9 +101,13 @@ typedef struct AVIODirEntry {
int64_t filemode; /**< Unix file mode, -1 if unknown. */
} AVIODirEntry;
+#if FF_API_AVIODIRCONTEXT
typedef struct AVIODirContext {
struct URLContext *url_context;
} AVIODirContext;
+#else
+typedef struct AVIODirContext AVIODirContext;
+#endif
/**
* Different data types that can be returned via the AVIO