diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-01-23 20:52:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-23 23:41:32 +0100 |
commit | f58d67000247eb8ac5029c3f16634d5851d4dfa9 (patch) | |
tree | 462a164c662c640f8a99aadfbe1b04d921e6050c /libavformat/movenc.c | |
parent | 2aadff2e44fa27664ccd1b0a63829e61bf82e939 (diff) | |
download | ffmpeg-f58d67000247eb8ac5029c3f16634d5851d4dfa9.tar.gz |
movenc: Decrease default chunk merge limit to 1mb.
This reduces the delay when opening the video with quicktime.
Idea-by: Maksym Veremeyenko <verem@m1stereo.tv>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 06d18f91f8..172353fadc 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1949,7 +1949,7 @@ static void build_chunks(MOVTrack *trk) trk->chunkCount= 1; for(i=1; i<trk->entry; i++){ if(chunk->pos + chunkSize == trk->cluster[i].pos && - chunkSize + trk->cluster[i].size < UINT32_MAX / 4){ + chunkSize + trk->cluster[i].size < (1<<20)){ chunkSize += trk->cluster[i].size; chunk->samplesInChunk += trk->cluster[i].entries; }else{ |