]> git.sesse.net Git - ffmpeg/commit
movenc: Use packets in interleaving queues for the duration at the end of fragments
authorMartin Storsjö <martin@martin.st>
Wed, 20 Apr 2016 20:10:37 +0000 (23:10 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 18 May 2016 07:37:03 +0000 (10:37 +0300)
commite1eb0fc960163402bbb4e630185790488f7d28ed
tree6e27920fd573abb1428ccd0b6fa4e74ab9603165
parentfd4957d9c67996e7d218fd36b4168c9cb85f9ea7
movenc: Use packets in interleaving queues for the duration at the end of fragments

As long as caller only writes packets using av_interleaved_write_frame
with no manual flushing, this should allow us to always have accurate
durations at the end of fragments, since there should be at least
one queued packet in each stream (except for the stream where the
current packet is being written, but if the muxer itself does the
cutting of fragments, it also has info about the next packet for that
stream).

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/avformat.h
libavformat/internal.h
libavformat/movenc.c
libavformat/movenc.h
libavformat/mux.c
libavformat/version.h