Commit 28ce9c0b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'ab118976'

* commit 'ab118976':
  movenc: Increase the cluster array allocation by doubling
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 30b491f1 ab118976
......@@ -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);
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment