Commit 4aee56b4 authored by bcoudurier's avatar bcoudurier

correctly set track duration

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15096 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b89b23b5
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment