diff options
Diffstat (limited to 'libhb/decomb.c')
-rw-r--r-- | libhb/decomb.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libhb/decomb.c b/libhb/decomb.c index 22f53de9c..d3a62cee3 100644 --- a/libhb/decomb.c +++ b/libhb/decomb.c @@ -1281,9 +1281,12 @@ static int hb_decomb_work( hb_filter_object_t * filter, *buf_in = NULL; if (in->s.flags & HB_BUF_FLAG_EOF) { - // Duplicate last frame and process refs - store_ref(pv, hb_buffer_dup(pv->ref[2])); - process_frame(pv); + if (pv->ref[2] != NULL) + { + // Duplicate last frame and process refs + store_ref(pv, hb_buffer_dup(pv->ref[2])); + process_frame(pv); + } hb_buffer_list_append(&pv->out_list, in); *buf_out = hb_buffer_list_clear(&pv->out_list); return HB_FILTER_DONE; |