Mercurial > libavformat.hg
changeset 3835:b60bdaa5a202 libavformat
correctly set track duration
author | bcoudurier |
---|---|
date | Sun, 31 Aug 2008 02:49:40 +0000 |
parents | d49f55ab650c |
children | 778af58056b6 |
files | mxfenc.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mxfenc.c Sun Aug 31 02:46:50 2008 +0000 +++ b/mxfenc.c Sun Aug 31 02:49:40 2008 +0000 @@ -836,6 +836,8 @@ klv_encode_ber_length(pb, pkt->size); // write length put_buffer(pb, pkt->data, pkt->size); // write value + sc->duration = FFMAX(pkt->pts + pkt->duration, sc->duration); + put_flush_packet(pb); return 0; }