From 76cc0992d88ebc91d6b2e0516586a73a0c83fdfd Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sat, 18 Feb 2012 21:21:20 +0100 Subject: oggenc: fix condition when not to flush due to keyframe granule. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/ref/lavf-fate/ogg_vp3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/ref/lavf-fate') diff --git a/tests/ref/lavf-fate/ogg_vp3 b/tests/ref/lavf-fate/ogg_vp3 index 9f36eeebc2..635dd3e5a9 100644 --- a/tests/ref/lavf-fate/ogg_vp3 +++ b/tests/ref/lavf-fate/ogg_vp3 @@ -1,3 +1,3 @@ -cf4184d736685fb698bb3be4656353bd *./tests/data/lavf-fate/lavf.ogg -417698 ./tests/data/lavf-fate/lavf.ogg +adbe6c30bdfe934dc5ae397f4db2960d *./tests/data/lavf-fate/lavf.ogg +417644 ./tests/data/lavf-fate/lavf.ogg ./tests/data/lavf-fate/lavf.ogg CRC=0x45a9df79 -- cgit v1.2.3