diff options
author | Andrey Semashev <andysem@mail.ru> | 2013-06-02 23:26:18 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-06-04 15:05:42 +0300 |
commit | 7c020e1ad37d27c9d5db4d714401f09c80e3cc44 (patch) | |
tree | 2eaae6e250a77d977a0e5f299883de4d6893c342 /libavformat/movenc.h | |
parent | ab1189766a82a95f108005463cde75f73fcc0ae5 (diff) | |
download | ffmpeg-7c020e1ad37d27c9d5db4d714401f09c80e3cc44.tar.gz |
movenc: Grow the frag_info array in chunks
Previously it was grown one element at a time, which leads to
excessive reallocations.
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, 2 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h index 103b918361..d15d69ccaa 100644 --- a/libavformat/movenc.h +++ b/libavformat/movenc.h @@ -26,6 +26,7 @@ #include "avformat.h" +#define MOV_FRAG_INFO_ALLOC_INCREMENT 64 #define MOV_INDEX_CLUSTER_SIZE 1024 #define MOV_TIMESCALE 1000 @@ -121,6 +122,7 @@ typedef struct MOVTrack { int nb_frag_info; MOVFragmentInfo *frag_info; + unsigned frag_info_capacity; struct { int64_t struct_offset; |