aboutsummaryrefslogtreecommitdiff
path: root/libavformat/smjpegenc.c
diff options
context:
space:
mode:
authorClément Bœsch2013-03-25 00:23:46 +0100
committerMartin Storsjö2013-09-16 22:17:33 +0300
commit73084391588b0f150737990038829cac5013dd68 (patch)
treef7a5755d0651098c36deabaf47f9d6c37a35e721 /libavformat/smjpegenc.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/smjpegenc.c')
-rw-r--r--libavformat/smjpegenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/smjpegenc.c b/libavformat/smjpegenc.c
index 5c64e844ad..551af8911d 100644
--- a/libavformat/smjpegenc.c
+++ b/libavformat/smjpegenc.c
@@ -109,7 +109,6 @@ static int smjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
avio_wb32(pb, pkt->pts);
avio_wb32(pb, pkt->size);
avio_write(pb, pkt->data, pkt->size);
- avio_flush(pb);
smc->duration = FFMAX(smc->duration, pkt->pts + pkt->duration);
return 0;