summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-12-08 17:54:46 -0800
committerJohn Stebbins <[email protected]>2016-12-17 07:28:51 -0800
commit38bb4a24ab8f6eaff037503f47a09070a0a99ff8 (patch)
tree71428de0c3bdb0a8a372cabf90f4646fce450e66 /libhb/work.c
parent1364ef08ec8035b2af77f214a4406e5300fb0ff2 (diff)
fix chapter markers when encoding with libav video encoder
encavcodec saved the chapter mark and set the buffers new_chap to 0. Then work copied the zero'd new_chap over the good mark that encavcodec set.
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 1cfb08bb1..f90b27022 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -1839,7 +1839,7 @@ static inline void copy_chapter( hb_buffer_t * dst, hb_buffer_t * src )
// worker that delays frames has to propagate the chapter marks itself
// and workers that move chapter marks to a different time should set
// 'src' to NULL so that this code won't generate spurious duplicates.)
- if( src && dst && src->s.start == dst->s.start)
+ if( src && dst && src->s.start == dst->s.start && src->s.new_chap != 0)
{
// restore log below to debug chapter mark propagation problems
dst->s.new_chap = src->s.new_chap;