summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
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/aviobuf.c
parent63f57f8530951a27748685446dddc8d54157a9d4 (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.c1
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)