mirror of https://github.com/mpv-player/mpv
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:
parent
4d6c1be7b6
commit
e0c005cb75
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue