summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2023-02-13 01:50:12 +0100
committerMarton Balint <cus@passwd.hu>2023-02-16 01:18:45 +0100
commit927042b409fc19a62085888b3a349d7e9e013b2e (patch)
treecea29731316882fce243bddbb7e30229d92c3895 /libavformat/avformat.h
parenteee6492df7a7dc6f70170eb6e8a14ae00d12afc8 (diff)
avformat: deprecate AVFormatContext io_close callback
io_close2 should be used instead. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index b986aacc78..1916aa2dc5 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1663,10 +1663,15 @@ typedef struct AVFormatContext {
int (*io_open)(struct AVFormatContext *s, AVIOContext **pb, const char *url,
int flags, AVDictionary **options);
+#if FF_API_AVFORMAT_IO_CLOSE
/**
* A callback for closing the streams opened with AVFormatContext.io_open().
+ *
+ * @deprecated use io_close2
*/
+ attribute_deprecated
void (*io_close)(struct AVFormatContext *s, AVIOContext *pb);
+#endif
/**
* ',' separated list of disallowed protocols.