diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-05 11:26:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-05 11:26:32 +0200 |
commit | 28ce9c0b73c5c4aea4cdaa1f584e7c0839286a35 (patch) | |
tree | 94172a0e71ec4b399ba5e5757a90f7c8aa7fd707 /libavformat | |
parent | 30b491f1c99aa7992157791a98d6cdae6ca2e895 (diff) | |
parent | ab1189766a82a95f108005463cde75f73fcc0ae5 (diff) | |
download | ffmpeg-28ce9c0b73c5c4aea4cdaa1f584e7c0839286a35.tar.gz |
Merge commit 'ab1189766a82a95f108005463cde75f73fcc0ae5'
* commit 'ab1189766a82a95f108005463cde75f73fcc0ae5':
movenc: Increase the cluster array allocation by doubling
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 2 | ||||
-rw-r--r-- | libavformat/movenc.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 40465e80fc..206c4be3dd 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3209,7 +3209,7 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) } if (trk->entry >= trk->cluster_capacity) { - unsigned new_capacity = trk->entry + MOV_INDEX_CLUSTER_SIZE; + unsigned new_capacity = 2*(trk->entry + MOV_INDEX_CLUSTER_SIZE); if (av_reallocp_array(&trk->cluster, new_capacity, sizeof(*trk->cluster))) return AVERROR(ENOMEM); diff --git a/libavformat/movenc.h b/libavformat/movenc.h index 6b583d5577..456ed0c4f7 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 |