]> granicus.if.org Git - handbrake/commitdiff
libhb: Fix nlmeans prefilter passthru frame addressing.
authorChris Darroch <chrisd@apache.org>
Sat, 30 Dec 2017 07:21:24 +0000 (23:21 -0800)
committerBradley Sepos <bradley@bradleysepos.com>
Sat, 30 Dec 2017 11:25:01 +0000 (06:25 -0500)
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

index 02433e3d326a32934082ffeed3cdc7ec64a47fef..7b6a8deb180c0d3401fabcc46d10b349eaf4326d 100644 (file)
@@ -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);