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/wavenc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavformat/wavenc.c') diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c index c44d6d26e9..ea7573139c 100644 --- a/libavformat/wavenc.c +++ b/libavformat/wavenc.c @@ -478,7 +478,6 @@ static int wav_write_trailer(AVFormatContext *s) avio_wl32(pb, -1); avio_seek(pb, file_size, SEEK_SET); - avio_flush(pb); } } @@ -605,7 +604,6 @@ static int w64_write_trailer(AVFormatContext *s) } avio_seek(pb, file_size, SEEK_SET); - avio_flush(pb); } return 0; -- cgit v1.2.3