From 4bf90e095b361cb11371921bf6eb357831d857b2 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Sat, 4 Jan 2020 19:03:24 +0100 Subject: avformat: remove avio_flush() calls from the end of write_header functions To make it consistent with other muxers. The user can still control the generic flushing behaviour after write_header (same way as after packets) using the -flush_packets option, the default typically means to flush unless a non-streamed file output is used. Therefore this change should have no adverse effect on streaming, even if it is assumed that the first packet has a clean buffer, so small seekbacks within the output buffer work even when the IO context is not seekable. Signed-off-by: Marton Balint --- libavformat/astenc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavformat/astenc.c') diff --git a/libavformat/astenc.c b/libavformat/astenc.c index 578e658891..d38a3aab38 100644 --- a/libavformat/astenc.c +++ b/libavformat/astenc.c @@ -101,8 +101,6 @@ static int ast_write_header(AVFormatContext *s) avio_wb64(pb, 0); avio_wb32(pb, 0); - avio_flush(pb); - return 0; } -- cgit v1.2.3