diff options
author | Andrey Semashev <andysem@mail.ru> | 2013-06-03 13:32:48 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-06-04 15:05:31 +0300 |
commit | ab1189766a82a95f108005463cde75f73fcc0ae5 (patch) | |
tree | bc5d3823b39968362e9ed5c473ef1ece1763f633 /libavformat/movenc.h | |
parent | 3b4feac1ec14f861bdd7f494f288f4d8dd7f449e (diff) | |
download | ffmpeg-ab1189766a82a95f108005463cde75f73fcc0ae5.tar.gz |
movenc: Increase the cluster array allocation by doubling
The previous allocation increment of 16384 meant that the cluster
array was allocated for 0.6 MB initially, which is a bit excessive
for cases with fragmentation where only a fraction of that ever
actually is used.
Therefore, start off at a much smaller value, and increase by
doubling (to avoid reallocating too often when writing long
non-fragmented mp4 files).
Bug-Id: 525
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r-- | libavformat/movenc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h index 2aa8ffb7e4..103b918361 100644 --- a/libavformat/movenc.h +++ b/libavformat/movenc.h @@ -26,7 +26,7 @@ #include "avformat.h" -#define MOV_INDEX_CLUSTER_SIZE 16384 +#define MOV_INDEX_CLUSTER_SIZE 1024 #define MOV_TIMESCALE 1000 #define RTP_MAX_PACKET_SIZE 1450 |