diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-08-16 03:25:05 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-08-18 13:21:44 +0400 |
commit | 725213545d63172099618cbaa08428e11729906d (patch) | |
tree | b696ed6ece0a92f81d76b288cff3c4241f4f5426 /libavformat/aviobuf.c | |
parent | 63f57f8530951a27748685446dddc8d54157a9d4 (diff) |
lavf/avio: flush internal buffer when calling avio_close()
This seems the expected behavior.
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index f6a914ace4..13b3c863e3 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -793,6 +793,7 @@ int avio_close(AVIOContext *s) if (!s) return 0; + avio_flush(s); h = s->opaque; av_free(s->buffer); if (!s->write_flag) |