]> granicus.if.org Git - handbrake/commitdiff
nlmeans: fix prefilter passthru 1.0.x
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 30 May 2017 21:41:16 +0000 (14:41 -0700)
committerBradley Sepos <bradley@bradleysepos.com>
Wed, 31 May 2017 08:56:18 +0000 (04:56 -0400)
This is an error that crept in when making nlmeans multithreaded

(cherry picked from commit 29a49a83a61885141d0062a850cee3cb90106f20)

libhb/nlmeans.c

index f7fd025fcd60c9ed930b925963e20300d9f88a5b..d5eeaabd8a11a7ca079b3f97c179b02a1c909797 100644 (file)
@@ -1001,7 +1001,7 @@ static void nlmeans_filter_thread(void *thread_args_v)
             }
             if (pv->prefilter[c] & NLMEANS_PREFILTER_MODE_PASSTHRU)
             {
-                nlmeans_prefilter(&pv->frame->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);