From: John Stebbins Date: Mon, 11 Jun 2018 22:36:52 +0000 (-0700) Subject: comb_detect: fix crash when no valid frames are passed X-Git-Tag: 1.2.0~324 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5832b176ce662dc5f1f891c9039f8fa419e1cb2c;p=handbrake comb_detect: fix crash when no valid frames are passed --- diff --git a/libhb/comb_detect.c b/libhb/comb_detect.c index 16eef9f21..014c0c062 100644 --- a/libhb/comb_detect.c +++ b/libhb/comb_detect.c @@ -1527,7 +1527,10 @@ static int comb_detect_work( hb_filter_object_t * filter, { // Duplicate last frame and process refs store_ref(pv, hb_buffer_dup(pv->ref[2])); - process_frame(pv); + if (pv->ref[0] != NULL) + { + process_frame(pv); + } hb_buffer_list_append(&pv->out_list, in); *buf_out = hb_buffer_list_clear(&pv->out_list); return HB_FILTER_DONE;