diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-08-16 03:25:05 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-09-15 20:24:49 +0400 |
commit | 5d1203f0635a0b14bea6cc609026936bd7ae9e3a (patch) | |
tree | 42c3ac0cd8c69a2d4189bc76829d1373fd62e14a /libavformat/aviobuf.c | |
parent | 0443879089f29e53e79d473076b99d7618ee673f (diff) |
avio: flush the internal buffer in avio_close()
This is consistent with stdio, and thus what people would naturally
expect.
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 fb01613298..7dc66e25a6 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -761,6 +761,7 @@ int avio_close(AVIOContext *s) if (!s) return 0; + avio_flush(s); h = s->opaque; av_freep(&s->buffer); av_free(s); |