oggenc: Flush after writing headers
authorAndrew Kelley <superjoe30@gmail.com>
Mon, 26 May 2014 04:04:19 +0000 (21:04 -0700)
committerMartin Storsjö <martin@martin.st>
Tue, 27 May 2014 17:16:59 +0000 (20:16 +0300)
commit9767d7c092c890ecc5953452e8a951fd902dd67b
tree1520568c54f4766444a0dbc114adc082b48d4a23
parent1d3eb0b5735f6dd72d2bf648455cf06ac7c24bc1
oggenc: Flush after writing headers

Before, header information for ogg format files was sent with the
first encoded packet.

This patch makes it so that it is possible for API users to
differentiate between headers and encoded audio. This is useful, for
example, when creating an audio stream where you want to send one set
of headers for every client that connects and then the encoded stream
of audio.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/oggenc.c
tests/ref/lavf/ogg