mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 07:40:00 +08:00
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>
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user