correctly set track duration

Originally committed as revision 15096 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Baptiste Coudurier 17 years ago
parent cdedd878c5
commit 68f4259c12
  1. 2
      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 klv_encode_ber_length(pb, pkt->size); // write length
put_buffer(pb, pkt->data, pkt->size); // write value put_buffer(pb, pkt->data, pkt->size); // write value
sc->duration = FFMAX(pkt->pts + pkt->duration, sc->duration);
put_flush_packet(pb); put_flush_packet(pb);
return 0; return 0;
} }

Loading…
Cancel
Save