]> git.sesse.net Git - nageru/commit
Add back manual interleaving, but this time in Mux.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 4 May 2016 18:19:37 +0000 (20:19 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 4 May 2016 18:34:01 +0000 (20:34 +0200)
commitdb03cd080a4b38d76b85d3acf88a1bac0e84e734
treeaaed21eeb95db8f8fa34f6865b3ef6ff47097534
parentdd64578c19aace6c4a946af40a5716c716f20ce9
Add back manual interleaving, but this time in Mux.

We need to interleave ourselves because we flush; otherwise, audio will
typically start 100 ms or so into the stream, and everything becomes bad.
Thankfully, we have only two streams to interleave, so we can choose
something quite simple, and this is still not bothered by the deadlocks
that arose from doing it in QuickSyncEncoder. (Hopefully we can soon find
keyframe boundaries without flushing, but it requires changes in avformat.)

Also fixes an issue where plugged packets would cause the boundaries
to fall in the wrong places.
mux.cpp
mux.h