From 73084391588b0f150737990038829cac5013dd68 Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Mon, 25 Mar 2013 00:23:46 +0100 Subject: lavf: Don't explicitly flush after each written packet in muxers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since 596e5d4783, this is not necessary anymore. It also allows to actually disable the flushing, improving write performance (but possibly giving worse latency in real-time streaming). Signed-off-by: Martin Storsjö --- libavformat/rmenc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavformat/rmenc.c') diff --git a/libavformat/rmenc.c b/libavformat/rmenc.c index ed1ba7c75b..fba8feb802 100644 --- a/libavformat/rmenc.c +++ b/libavformat/rmenc.c @@ -369,7 +369,6 @@ static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size, int } else { avio_write(pb, buf, size); } - avio_flush(pb); stream->nb_frames++; av_free(buf1); return 0; @@ -414,7 +413,6 @@ static int rm_write_video(AVFormatContext *s, const uint8_t *buf, int size, int avio_w8(pb, stream->nb_frames & 0xff); avio_write(pb, buf, size); - avio_flush(pb); stream->nb_frames++; return 0; -- cgit v1.2.3