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/swfenc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavformat/swfenc.c') diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c index 19166503e8..9de8b679d7 100644 --- a/libavformat/swfenc.c +++ b/libavformat/swfenc.c @@ -485,8 +485,6 @@ static int swf_write_trailer(AVFormatContext *s) put_swf_tag(s, TAG_END); put_swf_end_tag(s); - avio_flush(s->pb); - /* patch file size and number of frames if not streamed */ if (s->pb->seekable && video_enc) { file_size = avio_tell(pb); -- cgit v1.2.3