OSDN Git Service

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)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 18 Feb 2012 20:35:49 +0000 (21:35 +0100)
commit76cc0992d88ebc91d6b2e0516586a73a0c83fdfd
tree312afeb163962d3861f69e54cc894d5da526617e
parent030e96fe5566d9dd412540d258f05f907a86651f
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>
libavformat/oggenc.c
tests/ref/lavf-fate/ogg_vp3