1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Andrew Kelley 2014-05-25 21:04:19 -07:00 committed by Martin Storsjö
parent 1d3eb0b573
commit 9767d7c092
2 changed files with 3 additions and 1 deletions

View File

@ -541,6 +541,8 @@ static int ogg_write_header(AVFormatContext *s)
oggstream->page.start_granule = AV_NOPTS_VALUE; oggstream->page.start_granule = AV_NOPTS_VALUE;
ogg_write_pages(s, 1);
return 0; return 0;
} }

View File

@ -1,3 +1,3 @@
8ca901bc8d24b80ebe79e387e454d1e9 *./tests/data/lavf/lavf.ogg 3c41e917d95f925eaa8f2e31972edcfa *./tests/data/lavf/lavf.ogg
13476 ./tests/data/lavf/lavf.ogg 13476 ./tests/data/lavf/lavf.ogg
./tests/data/lavf/lavf.ogg CRC=0x3a1da17e ./tests/data/lavf/lavf.ogg CRC=0x3a1da17e