summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-08-16 01:25:05 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-08-18 11:21:44 +0200
commit725213545d63172099618cbaa08428e11729906d (patch)
treeb696ed6ece0a92f81d76b288cff3c4241f4f5426 /libavformat/avio.h
parent63f57f8530951a27748685446dddc8d54157a9d4 (diff)
lavf/avio: flush internal buffer when calling avio_close()
This seems the expected behavior.
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index ccf2f42548..08e9dd3659 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -391,6 +391,9 @@ int avio_open2(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().
*
+ * The internal buffer is automatically flushed before closing the
+ * resource.
+ *
* @return 0 on success, an AVERROR < 0 on error.
*/
int avio_close(AVIOContext *s);