diff options
author | eddyg <[email protected]> | 2007-08-31 01:31:07 +0000 |
---|---|---|
committer | eddyg <[email protected]> | 2007-08-31 01:31:07 +0000 |
commit | 18da7f138f5be947f1f904a78253ddaf39378a60 (patch) | |
tree | cbc0017a42f5a7b121f606bb033df7d415ccc269 /libhb/deinterlace.c | |
parent | 2fb15e992456904f519f8ea7f476349c3e1e7583 (diff) |
Workaround from "van" to prevent double chapter markers when using advanced deinterlace filters
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@907 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/deinterlace.c')
-rw-r--r-- | libhb/deinterlace.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libhb/deinterlace.c b/libhb/deinterlace.c index a6d3832d3..2d35ecf45 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;
}
|