summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-05 11:26:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-05 11:26:32 +0200
commit28ce9c0b73c5c4aea4cdaa1f584e7c0839286a35 (patch)
tree94172a0e71ec4b399ba5e5757a90f7c8aa7fd707 /libavformat/movenc.c
parent30b491f1c99aa7992157791a98d6cdae6ca2e895 (diff)
parentab1189766a82a95f108005463cde75f73fcc0ae5 (diff)
Merge commit 'ab1189766a82a95f108005463cde75f73fcc0ae5'
* commit 'ab1189766a82a95f108005463cde75f73fcc0ae5': movenc: Increase the cluster array allocation by doubling Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 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);