summaryrefslogtreecommitdiff
path: root/libavformat/microdvdenc.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-01-04 19:03:24 +0100
committerMarton Balint <cus@passwd.hu>2020-01-07 21:51:45 +0100
commit4bf90e095b361cb11371921bf6eb357831d857b2 (patch)
tree6c0faef410171cce0206b7aa5822bdcc76aa8ec1 /libavformat/microdvdenc.c
parent4d7f8254ac11e207f49348978231a6c4656d43e8 (diff)
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>
Diffstat (limited to 'libavformat/microdvdenc.c')
-rw-r--r--libavformat/microdvdenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/microdvdenc.c b/libavformat/microdvdenc.c
index 80e6fa8674..1cd215d8de 100644
--- a/libavformat/microdvdenc.c
+++ b/libavformat/microdvdenc.c
@@ -37,7 +37,6 @@ static int microdvd_write_header(struct AVFormatContext *s)
avio_write(s->pb, "{DEFAULT}{}", 11);
avio_write(s->pb, par->extradata, par->extradata_size);
avio_w8(s->pb, '\n');
- avio_flush(s->pb);
}
avpriv_set_pts_info(s->streams[0], 64, framerate.num, framerate.den);