From e0c005cb75d259a237b80046cecb903228b981ab Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 23 Sep 2015 14:09:00 +0200 Subject: va_vavpp: set input/output processing region If not set, VPP will use the whole surface. This is a problem if the surfaces are padded, and especially if the surfaces are padded by different amounts. This is an attempt to fix #2320, but it appears to do nothing at all. --- video/filter/vf_vavpp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video') diff --git a/video/filter/vf_vavpp.c b/video/filter/vf_vavpp.c index cb11e69cbb..a4a14e0dda 100644 --- a/video/filter/vf_vavpp.c +++ b/video/filter/vf_vavpp.c @@ -201,8 +201,8 @@ static struct mp_image *render(struct vf_instance *vf, struct mp_image *in, goto cleanup; param->surface = in_id; - param->surface_region = NULL; - param->output_region = NULL; + param->surface_region = &(VARectangle){0, 0, in->w, in->h}; + param->output_region = &(VARectangle){0, 0, img->w, img->h}; param->output_background_color = 0; param->filter_flags = flags; param->filters = p->pipe.filters; -- cgit v1.2.3