]> granicus.if.org Git - handbrake/commitdiff
libhb: fix crash in denoise filter
authorjstebbins <jstebbins.hb@gmail.com>
Fri, 22 Jun 2012 20:07:37 +0000 (20:07 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Fri, 22 Jun 2012 20:07:37 +0000 (20:07 +0000)
This was introduced in the filter rework patch, so it's not
a problem in the bugfix branch.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4767 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/denoise.c

index dfc58863d53ec481e9ba8a37f2dce60e26af7251..7200b8e00d4e6c105a814af0f1eb4dec14fea385 100644 (file)
@@ -399,7 +399,7 @@ static int hb_denoise_work( hb_filter_object_t * filter,
                     out->plane[0].data,
                     pv->hqdn3d_line,
                     &pv->hqdn3d_frame[0],
-                    in->plane[0].stride,
+                    in->plane[0].width,
                     in->plane[0].height,
                     pv->hqdn3d_coef[0],
                     pv->hqdn3d_coef[0],
@@ -409,7 +409,7 @@ static int hb_denoise_work( hb_filter_object_t * filter,
                     out->plane[1].data,
                     pv->hqdn3d_line,
                     &pv->hqdn3d_frame[1],
-                    in->plane[1].stride,
+                    in->plane[1].width,
                     in->plane[1].height,
                     pv->hqdn3d_coef[2],
                     pv->hqdn3d_coef[2],
@@ -419,7 +419,7 @@ static int hb_denoise_work( hb_filter_object_t * filter,
                     out->plane[2].data,
                     pv->hqdn3d_line,
                     &pv->hqdn3d_frame[2],
-                    in->plane[2].stride,
+                    in->plane[2].width,
                     in->plane[2].height,
                     pv->hqdn3d_coef[2],
                     pv->hqdn3d_coef[2],