Commit c863d375 authored by Michael Niedermayer's avatar Michael Niedermayer

movenc: replace cluster memset by zeroing only the needed field.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 77af2672
......@@ -2090,11 +2090,11 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
trk->cluster = av_realloc_f(trk->cluster, sizeof(*trk->cluster), (trk->entry + MOV_INDEX_CLUSTER_SIZE));
if (!trk->cluster)
return -1;
memset(trk->cluster + trk->entry, 0, sizeof(*trk->cluster)*MOV_INDEX_CLUSTER_SIZE);
}
trk->cluster[trk->entry].pos = avio_tell(pb) - size;
trk->cluster[trk->entry].samplesInChunk = samplesInChunk;
trk->cluster[trk->entry].chunkNum = 0;
trk->cluster[trk->entry].size = size;
trk->cluster[trk->entry].entries = samplesInChunk;
trk->cluster[trk->entry].dts = pkt->dts;
......
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