summaryrefslogtreecommitdiffstats
path: root/libhb/deinterlace.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/deinterlace.c')
-rw-r--r--libhb/deinterlace.c10
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;
}