Skip to content

Commit 14fd34d

Browse files
committed
movenc: fix edit list for the case of negative pts.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
1 parent 015b805 commit 14fd34d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libavformat/movenc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,10 @@ static int mov_write_edts_tag(AVIOContext *pb, MOVTrack *track)
16721672
avio_wb32(pb, -1);
16731673
}
16741674
avio_wb32(pb, 0x00010000);
1675+
} else {
1676+
av_assert0(track->cluster[0].dts <= 0);
1677+
start_ct = -track->cluster[0].dts;
1678+
duration += delay;
16751679
}
16761680

16771681
/* duration */

0 commit comments

Comments
 (0)