oggenc: fix condition when not to flush due to keyframe granule.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 18 Feb 2012 20:21:20 +0000 (21:21 +0100)
committerJustin Ruggles <justin.ruggles@gmail.com>
Fri, 30 Mar 2012 20:32:16 +0000 (16:32 -0400)
commit10b1c060f9d2b6028ce4d3fc544a60ee6d7acc06
tree18c9ed35f5e0818e05ac1df4c959fa1d6651efe6
parented3e1b485acfba72ac9741407836c6125559d567
oggenc: fix condition when not to flush due to keyframe granule.

The previous condition of 0 page size was wrong,
that would disable the mechanism for all frames at
a start of a page, thus some keyframes still would not
get their own granule.
The real problem is that header packets must not be flushed,
but they have (and must have) 0 granule and thus would
be detected as keyframes.
Add a separate parameter to mark header packets.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
libavformat/oggenc.c