[FFmpeg-cvslog] avio: document avio_close().
Anton Khirnov
git at videolan.org
Mon Apr 11 04:12:09 CEST 2011
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Apr 9 12:43:51 2011 +0200| [e782a0c6da0daa7b65e0355e50e68b13441b5faa] | committer: Anton Khirnov
avio: document avio_close().
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e782a0c6da0daa7b65e0355e50e68b13441b5faa
---
libavformat/avio.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/libavformat/avio.h b/libavformat/avio.h
index ca5dc2d..134df12 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -555,6 +555,12 @@ int url_resetbuf(AVIOContext *s, int flags);
*/
int avio_open(AVIOContext **s, const char *url, int flags);
+/**
+ * Close the resource accessed by the AVIOContext s and free it.
+ * This function can only be used if s was opened by avio_open().
+ *
+ * @return 0 on success, an AVERROR < 0 on error.
+ */
int avio_close(AVIOContext *s);
/**
More information about the ffmpeg-cvslog
mailing list