[FFmpeg-cvslog] r15096 - trunk/libavformat/mxfenc.c

bcoudurier subversion
Sun Aug 31 04:49:40 CEST 2008


Author: bcoudurier
Date: Sun Aug 31 04:49:40 2008
New Revision: 15096

Log:
correctly set track duration

Modified:
   trunk/libavformat/mxfenc.c

Modified: trunk/libavformat/mxfenc.c
==============================================================================
--- trunk/libavformat/mxfenc.c	(original)
+++ trunk/libavformat/mxfenc.c	Sun Aug 31 04:49:40 2008
@@ -836,6 +836,8 @@ static int mux_write_packet(AVFormatCont
     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;
 }




More information about the ffmpeg-cvslog mailing list