Skip to content

Commit

Permalink
movenc: fix edit list for the case of negative pts.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
michaelni committed Oct 1, 2012

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 015b805 commit 14fd34d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libavformat/movenc.c
Original file line number Diff line number Diff line change
@@ -1672,6 +1672,10 @@ static int mov_write_edts_tag(AVIOContext *pb, MOVTrack *track)
avio_wb32(pb, -1);
}
avio_wb32(pb, 0x00010000);
} else {
av_assert0(track->cluster[0].dts <= 0);
start_ct = -track->cluster[0].dts;
duration += delay;
}

/* duration */

0 comments on commit 14fd34d

Please sign in to comment.