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.
This commit is contained in:
wm4 2015-09-23 14:09:00 +02:00
parent 4d6c1be7b6
commit e0c005cb75
1 changed files with 2 additions and 2 deletions

View File

@ -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;