diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-03-25 00:23:46 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-09-16 22:17:33 +0300 |
commit | 73084391588b0f150737990038829cac5013dd68 (patch) | |
tree | f7a5755d0651098c36deabaf47f9d6c37a35e721 /libavformat/vc1testenc.c | |
parent | 596e5d4783ca951258a7c580951fd161f1785ec1 (diff) | |
download | ffmpeg-73084391588b0f150737990038829cac5013dd68.tar.gz |
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/vc1testenc.c')
-rw-r--r-- | libavformat/vc1testenc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/vc1testenc.c b/libavformat/vc1testenc.c index abe8c6b231..9d55fee46d 100644 --- a/libavformat/vc1testenc.c +++ b/libavformat/vc1testenc.c @@ -63,7 +63,6 @@ static int vc1test_write_packet(AVFormatContext *s, AVPacket *pkt) avio_wl32(pb, pkt->size | ((pkt->flags & AV_PKT_FLAG_KEY) ? 0x80000000 : 0)); avio_wl32(pb, pkt->pts); avio_write(pb, pkt->data, pkt->size); - avio_flush(pb); ctx->frames++; return 0; |