From: Rodeo Date: Tue, 7 Jan 2014 00:00:50 +0000 (+0000) Subject: libhb: don't forget to delete chapter markers after saving them in filter_loop. X-Git-Tag: 0.10.0~576 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe7d16cfa8d7438b76c245b8bae9d358082a734f;p=handbrake libhb: don't forget to delete chapter markers after saving them in filter_loop. Some filters will propagate them, and since filter_loop also restores them, this can result in duplicate chapters or other related issues. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5955 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/work.c b/libhb/work.c index e76c88a91..7bb8eab4f 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -1733,6 +1733,8 @@ static void filter_loop( void * _f ) { f->chapter_time = buf_in->s.start; f->chapter_val = buf_in->s.new_chap; + // don't let 'filter_loop' put a chapter mark on the wrong buffer + buf_in->s.new_chap = 0; } if ( *f->done ) {