summaryrefslogtreecommitdiff
path: root/libavformat/rmenc.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-03-25 00:23:46 +0100
committerMartin Storsjö <martin@martin.st>2013-09-16 22:17:33 +0300
commit73084391588b0f150737990038829cac5013dd68 (patch)
treef7a5755d0651098c36deabaf47f9d6c37a35e721 /libavformat/rmenc.c
parent596e5d4783ca951258a7c580951fd161f1785ec1 (diff)
lavf: Don't explicitly flush after each written packet in muxers
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ö <martin@martin.st>
Diffstat (limited to 'libavformat/rmenc.c')
-rw-r--r--libavformat/rmenc.c2
1 files changed, 0 insertions, 2 deletions
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;