Skip to content

Commit

Permalink
libhb: Fix nlmeans prefilter passthru only outputting some frames.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleysepos committed Dec 30, 2017
1 parent 0067b00 commit 0e072aa
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions libhb/nlmeans.c
Expand Up @@ -97,7 +97,6 @@ typedef struct
int h;
int border;
hb_lock_t *mutex;
int prefiltered;
} BorderedPlane;

typedef struct
Expand Down Expand Up @@ -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 ||
Expand Down Expand Up @@ -597,7 +591,6 @@ static void nlmeans_prefilter(BorderedPlane *src,
nlmeans_border(mem_pre, w, h, border);

}
src->prefiltered = 1;
hb_unlock(src->mutex);
}

Expand Down

0 comments on commit 0e072aa

Please sign in to comment.