From 3b4bb19e63b41a0a542ba3ef254443b2e76a6a3e Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 9 Sep 2012 21:35:23 +0200 Subject: lavf: flush the output AVIOContext in av_write_trailer(). This is consistent with stdio and is what we want to do in all cases. Fixes a bug in the voc muxer which didn't flush in write_trailer() previously. This is the cause of the change in the test results. --- libavformat/nutenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/nutenc.c') diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 9675af176e..df0301b5e7 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -851,7 +851,7 @@ static int nut_write_trailer(AVFormatContext *s){ while(nut->header_count<3) write_headers(s, bc); - avio_flush(bc); + ff_nut_free_sp(nut); av_freep(&nut->stream); av_freep(&nut->chapter); -- cgit v1.2.3