From 7a9f97278418e3ed59c23a8d291e9c98b8e5c0b0 Mon Sep 17 00:00:00 2001 From: Chris Darroch Date: Fri, 29 Dec 2017 23:21:24 -0800 Subject: [PATCH] libhb: Fix nlmeans prefilter passthru frame addressing. In commit 29a49a8, the nlmeans_prefilter() call in nlmeans_filter_thread() was fixed, but a corresponding change was not made to the similar call site in nlmeans_filter_flush(). --- libhb/nlmeans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhb/nlmeans.c b/libhb/nlmeans.c index 02433e3d3..7b6a8deb1 100644 --- a/libhb/nlmeans.c +++ b/libhb/nlmeans.c @@ -1138,7 +1138,7 @@ static hb_buffer_t * nlmeans_filter_flush(hb_filter_private_t *pv) } if (pv->prefilter[c] & NLMEANS_PREFILTER_MODE_PASSTHRU) { - nlmeans_prefilter(&pv->frame[f].plane[c], pv->prefilter[c]); + nlmeans_prefilter(&frame->plane[c], pv->prefilter[c]); nlmeans_deborder(&frame->plane[c], buf->plane[c].data, buf->plane[c].width, buf->plane[c].stride, buf->plane[c].height); -- 2.40.0