From c05d82fa92b38ac0459a0605872991d8fa9e2252 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Sat, 4 Jan 2020 19:31:14 +0100 Subject: avformat: remove unneeded avio_flush() calls from the end of write_trailer functions The IO context is always flushed by libavformat/mux.c after write_trailer is called, so this change should have no effect at all. --- libavformat/flacenc.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libavformat/flacenc.c') diff --git a/libavformat/flacenc.c b/libavformat/flacenc.c index abbed38f89..1aae0c97e0 100644 --- a/libavformat/flacenc.c +++ b/libavformat/flacenc.c @@ -349,7 +349,6 @@ static int flac_write_trailer(struct AVFormatContext *s) avio_seek(pb, 8, SEEK_SET); avio_write(pb, streaminfo, FLAC_STREAMINFO_SIZE); avio_seek(pb, file_size, SEEK_SET); - avio_flush(pb); } else { av_log(s, AV_LOG_WARNING, "unable to rewrite FLAC header.\n"); } -- cgit v1.2.3