summaryrefslogtreecommitdiffstats
path: root/libhb/cropscale.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2013-05-31 15:35:28 +0000
committerjstebbins <[email protected]>2013-05-31 15:35:28 +0000
commitdc0c09c0def611964fd22951ce50e6b0cbc7f48f (patch)
tree2e3035f7b7d26e81d41a2435abc66e3853e48225 /libhb/cropscale.c
parentb6f1cc3f42342d6b99c4b2cc8a71e71d90031156 (diff)
cropscale: fix initial value of output width/height
Since all the frontends specifiy all parameters to the cropscale filter, this really has no effect. But it was incorrect... git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5536 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/cropscale.c')
-rw-r--r--libhb/cropscale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/cropscale.c b/libhb/cropscale.c
index 426f84634..d217393d1 100644
--- a/libhb/cropscale.c
+++ b/libhb/cropscale.c
@@ -56,8 +56,8 @@ static int hb_crop_scale_init( hb_filter_object_t * filter,
pv->pix_fmt_out = init->pix_fmt;
pv->width_in = init->width;
pv->height_in = init->height;
- pv->width_out = init->width;
- pv->height_out = init->height;
+ pv->width_out = init->width - (init->crop[2] + init->crop[3]);
+ pv->height_out = init->height - (init->crop[0] + init->crop[1]);
memcpy( pv->crop, init->crop, sizeof( int[4] ) );
if( filter->settings )
{