matroskaenc: Mux clusters better
authorJames Zern <jzern@google.com>
Fri, 4 Jun 2010 22:40:50 +0000 (22:40 +0000)
committerDavid Conrad <lessen42@gmail.com>
Fri, 4 Jun 2010 22:40:50 +0000 (22:40 +0000)
commitac9baa716b8369d7df225f25f9e5eee7bd512b80
treeeb7b2b842917b57e6949634869850fe9b0d57e8d
parent3ad0b189f74e2f1beee2f4d1a4a99b16689b866a
matroskaenc: Mux clusters better

Start them on keyframes when reasonable, and delay writing audio packets
to help ensure that there's audio samples available for the first frame in
clusters.

Patch by James Zern <jzern at google>

Originally committed as revision 23473 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/matroskaenc.c
tests/ref/acodec/pcm
tests/ref/lavf/mkv
tests/ref/seek/lavf.mkv.ref