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/mpegenc.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libavformat/mpegenc.c') diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index f6980231a2..f8039a42c0 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -1244,7 +1244,6 @@ static int mpeg_mux_end(AVFormatContext *ctx) * it as it is usually not needed by decoders and because it * complicates MPEG stream concatenation. */ // avio_wb32(ctx->pb, ISO_11172_END_CODE); - // avio_flush(ctx->pb); for (i = 0; i < ctx->nb_streams; i++) { stream = ctx->streams[i]->priv_data; -- cgit v1.2.3