summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_vavpp.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-23 14:09:00 +0200
committerwm4 <wm4@nowhere>2015-09-23 14:20:50 +0200
commite0c005cb75d259a237b80046cecb903228b981ab (patch)
tree4cf240f45e15d0accd1e52308b7943314024e242 /video/filter/vf_vavpp.c
parent4d6c1be7b69e99534cb6ac37daf8a22e7b2b153d (diff)
downloadmpv-e0c005cb75d259a237b80046cecb903228b981ab.tar.bz2
mpv-e0c005cb75d259a237b80046cecb903228b981ab.tar.xz
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.
Diffstat (limited to 'video/filter/vf_vavpp.c')
-rw-r--r--video/filter/vf_vavpp.c4
1 files changed, 2 insertions, 2 deletions
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;