aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-07 05:06:13 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-07 05:21:37 +0100
commit901af94b6976c05d7c092024c1dcf891ab3be66a (patch)
treef396888e09775c75661bcfacad2184fb3665fe3a /libavformat/movenc.c
parent1fa8ff38e47b3e0fc63e2a2e8fbbcf9e4fb071c5 (diff)
downloadffmpeg-901af94b6976c05d7c092024c1dcf891ab3be66a.tar.gz
movenc: Always write EDTS when we are able to.
Inspired by a patch from Michael Root Idea-by: Baptiste Coudurier Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 80c45a5239..d718cf1974 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1401,9 +1401,8 @@ static int mov_write_trak_tag(AVIOContext *pb, MOVMuxContext *mov, MOVTrack *tra
avio_wb32(pb, 0); /* size */
ffio_wfourcc(pb, "trak");
mov_write_tkhd_tag(pb, track, st);
- if (track->mode == MODE_PSP || track->flags & MOV_TRACK_CTTS || track->cluster[0].dts)
- if(!mov->fragments) // EDTS with fragments is tricky as we dont know the duration when its written
- mov_write_edts_tag(pb, track); // PSP Movies require edts box
+ if(!mov->fragments) // EDTS with fragments is tricky as we dont know the duration when its written
+ mov_write_edts_tag(pb, track); // PSP Movies and several other cases require edts box
if (track->tref_tag)
mov_write_tref_tag(pb, track);
mov_write_mdia_tag(pb, track);