diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-08-16 01:25:05 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-09-15 18:24:49 +0200 |
commit | 5d1203f0635a0b14bea6cc609026936bd7ae9e3a (patch) | |
tree | 42c3ac0cd8c69a2d4189bc76829d1373fd62e14a /libavformat/avio.h | |
parent | 0443879089f29e53e79d473076b99d7618ee673f (diff) | |
download | ffmpeg-5d1203f0635a0b14bea6cc609026936bd7ae9e3a.tar.gz |
avio: flush the internal buffer in avio_close()
This is consistent with stdio, and thus what people would naturally
expect.
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 10c0a12ccb..55c96bc432 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -349,6 +349,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); |