From 0e072aa42e3affd6280447317375460753f9284b Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Sat, 30 Dec 2017 06:23:49 -0500 Subject: [PATCH] libhb: Fix nlmeans prefilter passthru only outputting some frames. Closes #1088. --- libhb/nlmeans.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libhb/nlmeans.c b/libhb/nlmeans.c index 8b776f4f17bb..5a6d9169a136 100644 --- a/libhb/nlmeans.c +++ b/libhb/nlmeans.c @@ -97,7 +97,6 @@ typedef struct int h; int border; hb_lock_t *mutex; - int prefiltered; } BorderedPlane; typedef struct @@ -493,11 +492,6 @@ static void nlmeans_prefilter(BorderedPlane *src, const int filter_type) { hb_lock(src->mutex); - if (src->prefiltered) - { - hb_unlock(src->mutex); - return; - } if (filter_type & NLMEANS_PREFILTER_MODE_MEAN3X3 || filter_type & NLMEANS_PREFILTER_MODE_MEAN5X5 || @@ -597,7 +591,6 @@ static void nlmeans_prefilter(BorderedPlane *src, nlmeans_border(mem_pre, w, h, border); } - src->prefiltered = 1; hb_unlock(src->mutex); }