diff options
author | John Stebbins <[email protected]> | 2018-06-11 15:36:52 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2018-06-11 15:36:52 -0700 |
commit | 5832b176ce662dc5f1f891c9039f8fa419e1cb2c (patch) | |
tree | ed501682b7a94b81a18df8307ab9b54e1f78a2a7 /libhb | |
parent | 3368d37a980f5f31182fca5c22e175f444ccae9f (diff) |
comb_detect: fix crash when no valid frames are passed
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/comb_detect.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |