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/mpjpeg.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libavformat/mpjpeg.c') diff --git a/libavformat/mpjpeg.c b/libavformat/mpjpeg.c index 6c8bd0ce17..2114189244 100644 --- a/libavformat/mpjpeg.c +++ b/libavformat/mpjpeg.c @@ -44,7 +44,6 @@ static int mpjpeg_write_packet(AVFormatContext *s, AVPacket *pkt) snprintf(buf1, sizeof(buf1), "\n--%s\n", BOUNDARY_TAG); avio_write(s->pb, buf1, strlen(buf1)); - avio_flush(s->pb); return 0; } -- cgit v1.2.3