From 725213545d63172099618cbaa08428e11729906d Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 16 Aug 2012 01:25:05 +0200 Subject: lavf/avio: flush internal buffer when calling avio_close() This seems the expected behavior. --- libavformat/avio.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/avio.h') 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); -- cgit v1.2.3