summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-06-23 09:59:26 +0000
committerjstebbins <[email protected]>2012-06-23 09:59:26 +0000
commitb652ba78ab983eebfbe1409b255101a2226f10c8 (patch)
treef3642a1f8c4f94995c10649fae648c6c8385af2b /libhb
parent9f9853aac829e2010ff11f2d4895c87807a26d7f (diff)
fix stride in denoise filter
I should have made the malloc larger rather than changing the stride git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4772 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/denoise.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/denoise.c b/libhb/denoise.c
index 7200b8e00..c925a1080 100644
--- a/libhb/denoise.c
+++ b/libhb/denoise.c
@@ -392,14 +392,14 @@ static int hb_denoise_work( hb_filter_object_t * filter,
if( !pv->hqdn3d_line )
{
- pv->hqdn3d_line = malloc( in->f.width * sizeof(int) );
+ pv->hqdn3d_line = malloc( in->plane[0].stride * sizeof(int) );
}
hqdn3d_denoise( in->plane[0].data,
out->plane[0].data,
pv->hqdn3d_line,
&pv->hqdn3d_frame[0],
- in->plane[0].width,
+ in->plane[0].stride,
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].width,
+ in->plane[1].stride,
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].width,
+ in->plane[2].stride,
in->plane[2].height,
pv->hqdn3d_coef[2],
pv->hqdn3d_coef[2],