summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/common.c')
-rw-r--r--libhb/common.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/libhb/common.c b/libhb/common.c
index ca74aeb16..3cb804ce7 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -3718,6 +3718,27 @@ hb_list_t *hb_filter_list_copy(const hb_list_t *src)
return list;
}
+hb_filter_object_t * hb_filter_find(const hb_list_t *list, int filter_id)
+{
+ hb_filter_object_t *filter = NULL;
+ int ii;
+
+ if (list == NULL)
+ {
+ return NULL;
+ }
+ for (ii = 0; ii < hb_list_count(list); ii++)
+ {
+ filter = hb_list_item(list, ii);
+ if (filter->id == filter_id)
+ {
+ return filter;
+ }
+ }
+
+ return NULL;
+}
+
/**
* Gets a filter object with the given type
* @param filter_id The type of filter to get.
@@ -3732,6 +3753,10 @@ hb_filter_object_t * hb_filter_get( int filter_id )
filter = &hb_filter_detelecine;
break;
+ case HB_FILTER_COMB_DETECT:
+ filter = &hb_filter_comb_detect;
+ break;
+
case HB_FILTER_DECOMB:
filter = &hb_filter_decomb;
break;