From 5d1203f0635a0b14bea6cc609026936bd7ae9e3a Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 16 Aug 2012 01:25:05 +0200 Subject: avio: flush the internal buffer in avio_close() This is consistent with stdio, and thus what people would naturally expect. --- libavformat/aviobuf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/aviobuf.c') 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); -- cgit v1.2.3