summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-09-02 16:23:17 +0300
committerMartin Storsjö <martin@martin.st>2013-09-03 10:36:17 +0300
commit0fbda03e5cfce9d37a263abd08947e5a64ed8ee9 (patch)
tree69efffddb0b74828c60a460c6fc3fb4833e0eb8e /libavformat
parent7df9e693a34c84c698da60426c78140c950f95ed (diff)
movenc: Don't flush after each written packet
This should improve write performance quite significantly. --- Tested with both writing a normal mp4, by using the faststart feature and writing a fragmented mp4 file; all turn out with the same md5sum as before. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 5836f5e202..29f5145857 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2961,8 +2961,6 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
trk->sample_count += samples_in_chunk;
mov->mdat_size += size;
- avio_flush(pb);
-
if (trk->hint_track >= 0 && trk->hint_track < mov->nb_streams)
ff_mov_add_hinted_packet(s, pkt, trk->hint_track, trk->entry,
reformatted_data, size);