diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-31 02:49:40 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-31 02:49:40 +0000 |
commit | 68f4259c12228859f75a38a1ab5232517d1110ef (patch) | |
tree | 36af2da3732a35a3b7049ecf075e08179082c6a5 | |
parent | cdedd878c5afac547cecbb5565fcd4509c22677f (diff) | |
download | ffmpeg-68f4259c12228859f75a38a1ab5232517d1110ef.tar.gz |
correctly set track duration
Originally committed as revision 15096 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mxfenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 6713f2a9bd..38624dd6e6 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -836,6 +836,8 @@ static int mux_write_packet(AVFormatContext *s, AVPacket *pkt) 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; } |