From 78963278a6dd922da72f1b52be3e1f9211915401 Mon Sep 17 00:00:00 2001 From: eddyg Date: Fri, 31 Aug 2007 01:31:07 +0000 Subject: [PATCH 1/1] Workaround from "van" to prevent double chapter markers when using advanced deinterlace filters git-svn-id: svn://localhost/HandBrake/trunk@907 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/deinterlace.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libhb/deinterlace.c b/libhb/deinterlace.c index a6d3832d..2d35ecf4 100644 --- a/libhb/deinterlace.c +++ b/libhb/deinterlace.c @@ -65,7 +65,7 @@ hb_filter_private_t * hb_deinterlace_init( int pix_fmt, int height, char * settings ); -int hb_deinterlace_work( const hb_buffer_t * buf_in, +int hb_deinterlace_work( hb_buffer_t * buf_in, hb_buffer_t ** buf_out, int pix_fmt, int width, @@ -497,7 +497,7 @@ void hb_deinterlace_close( hb_filter_private_t * pv ) free( pv ); } -int hb_deinterlace_work( const hb_buffer_t * buf_in, +int hb_deinterlace_work( hb_buffer_t * buf_in, hb_buffer_t ** buf_out, int pix_fmt, int width, @@ -551,6 +551,9 @@ int hb_deinterlace_work( const hb_buffer_t * buf_in, yadif_store_ref( (const uint8_t**)pv->pic_in.data, pv ); hb_buffer_copy_settings( pv->buf_settings, buf_in ); + + /* don't let 'work_loop' send a chapter mark upstream */ + buf_in->new_chap = 0; pv->yadif_ready = 1; @@ -588,6 +591,9 @@ int hb_deinterlace_work( const hb_buffer_t * buf_in, /* Replace buffered settings with input buffer settings */ hb_buffer_copy_settings( pv->buf_settings, buf_in ); + + /* don't let 'work_loop' send a chapter mark upstream */ + buf_in->new_chap = 0; return FILTER_OK; } -- 2.11.0