]> git.sesse.net Git - ffmpeg/commit
avformat: remove avio_flush() calls from the end of write_header functions
authorMarton Balint <cus@passwd.hu>
Sat, 4 Jan 2020 18:03:24 +0000 (19:03 +0100)
committerMarton Balint <cus@passwd.hu>
Tue, 7 Jan 2020 20:51:45 +0000 (21:51 +0100)
commit4bf90e095b361cb11371921bf6eb357831d857b2
tree6c0faef410171cce0206b7aa5822bdcc76aa8ec1
parent4d7f8254ac11e207f49348978231a6c4656d43e8
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 <cus@passwd.hu>
28 files changed:
libavformat/aiffenc.c
libavformat/amr.c
libavformat/asfenc.c
libavformat/assenc.c
libavformat/astenc.c
libavformat/au.c
libavformat/avienc.c
libavformat/cafenc.c
libavformat/ffmetaenc.c
libavformat/framehash.c
libavformat/gxfenc.c
libavformat/icoenc.c
libavformat/idroqenc.c
libavformat/ilbc.c
libavformat/jacosubenc.c
libavformat/matroskaenc.c
libavformat/microdvdenc.c
libavformat/mmf.c
libavformat/movenc.c
libavformat/mpjpeg.c
libavformat/nutenc.c
libavformat/rmenc.c
libavformat/rsoenc.c
libavformat/smjpegenc.c
libavformat/soxenc.c
libavformat/swfenc.c
libavformat/wavenc.c
libavformat/webvttenc.c