summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-10-12 23:49:22 +0300
committerMartin Storsjö <martin@martin.st>2014-11-17 16:17:07 +0200
commit3847f3ab58b3b74604807394247bf68827258103 (patch)
treed30f457a470e395703c804a75a2b979ae36b2628 /libavformat/movenc.c
parentfe5e6e34c05e274f98528be4f77f3c474473f977 (diff)
movenc: Add tfra entries for all tracks in a moof
Previously only tfra entries were added for the first track in each moof. The frag_info array used for tfra can also be used for writing other kinds of fragment indexes, where it's more important to include all tracks. When the separate_moof option is enabled (as in ismv), we write a separate moof for each track, so this doesn't make any difference in that case. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 76439678d1..27b6ef1551 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2600,10 +2600,6 @@ static int mov_add_tfra_entries(AVIOContext *pb, MOVMuxContext *mov, int tracks)
track->cluster[0].dts;
info->tfrf_offset = 0;
mov_write_tfrf_tags(pb, mov, track);
- // If writing all tracks, we currently only add a tfra entry for
- // the first track (that actually has data to be written).
- if (tracks < 0)
- break;
}
return 0;
}