]> granicus.if.org Git - handbrake/commitdiff
libhb: don't forget to delete chapter markers after saving them in filter_loop.
authorRodeo <tdskywalker@gmail.com>
Tue, 7 Jan 2014 00:00:50 +0000 (00:00 +0000)
committerRodeo <tdskywalker@gmail.com>
Tue, 7 Jan 2014 00:00:50 +0000 (00:00 +0000)
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

libhb/work.c

index e76c88a91a0d89a481d73ceda10f6d98e74d7a0c..7bb8eab4f1bb65bba70776bcb29cc3eda99c4b16 100644 (file)
@@ -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 )
         {