]> granicus.if.org Git - handbrake/commitdiff
encx265: fix chapter insertion.
authorRodeo <tdskywalker@gmail.com>
Sat, 10 May 2014 19:24:03 +0000 (19:24 +0000)
committerRodeo <tdskywalker@gmail.com>
Sat, 10 May 2014 19:24:03 +0000 (19:24 +0000)
Checking whether we should attach a chapter to
the output buffer is not enough, we actually
have to attach it too.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6176 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/encx265.c

index 7ed2803715a527b541bfb874759a93a23457a91f..44fb4a10b8db251d0e6968a63062c8438f16f515 100644 (file)
@@ -343,6 +343,7 @@ static hb_buffer_t* nal_encode(hb_work_object_t *w,
         {
             // we're done with this chapter
             hb_list_rem(pv->delayed_chapters, item);
+            buf->s.new_chap = item->index;
             free(item);
 
             // we may still have another pending chapter