summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorRodeo <[email protected]>2014-01-07 00:00:50 +0000
committerRodeo <[email protected]>2014-01-07 00:00:50 +0000
commitfe7d16cfa8d7438b76c245b8bae9d358082a734f (patch)
tree85691e1ae4cdae84a73b07423adb88ab2da46ce5 /libhb
parent4b8e7cd0e3c3a9ef9fe5ff5a986d1dda77ceb3c9 (diff)
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
Diffstat (limited to 'libhb')
-rw-r--r--libhb/work.c2
1 files changed, 2 insertions, 0 deletions
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 )
{