mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 04:30:02 +00:00
correctly set track duration
Originally committed as revision 15096 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
cdedd878c5
commit
68f4259c12
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user