]> granicus.if.org Git - handbrake/commitdiff
libhb: Remove redundant check in preset.c.
authormidzer <midzer@gmail.com>
Wed, 19 Oct 2016 18:59:00 +0000 (20:59 +0200)
committerBradley Sepos <bradley@bradleysepos.com>
Wed, 14 Dec 2016 16:29:32 +0000 (11:29 -0500)
libhb/preset.c

index 5eb18b8ceab1a1c1e7fb250c24412e57f847b9b7..e2dc02057dc435e76c96563c88e71e09cdac3514 100644 (file)
@@ -1673,10 +1673,9 @@ int hb_preset_apply_title(hb_handle_t *h, int title_index,
     hb_title_t *title = hb_find_title_by_index(h, title_index);
     if (title == NULL)
         return -1;
-
-    int chapters;
-    chapters = hb_value_get_bool(hb_dict_get(preset, "ChapterMarkers"));
-    if (title != NULL && hb_list_count(title->list_chapter) <= 1)
+   
+    int chapters = hb_value_get_bool(hb_dict_get(preset, "ChapterMarkers"));
+    if (hb_list_count(title->list_chapter) <= 1)
         chapters = 0;
 
     // Set "Destination" settings in job