diff options
-rw-r--r-- | video/filter/vf_vavpp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/video/filter/vf_vavpp.c b/video/filter/vf_vavpp.c index c8b3bfdf25..770e68bfce 100644 --- a/video/filter/vf_vavpp.c +++ b/video/filter/vf_vavpp.c @@ -156,10 +156,6 @@ static struct mp_image *render(struct vf_instance *vf, struct mp_image *in, if (!check_error(vf, status, "vaCreateBuffer()")) goto cleanup; - status = vaMapBuffer(p->display, buffer, (void**)¶m); - if (!check_error(vf, status, "vaMapBuffer()")) - goto cleanup; - VAProcFilterParameterBufferDeinterlacing *filter_params; status = vaMapBuffer(p->display, *(p->pipe.filters), (void**)&filter_params); if (!check_error(vf, status, "vaMapBuffer()")) @@ -171,6 +167,10 @@ static struct mp_image *render(struct vf_instance *vf, struct mp_image *in, vaUnmapBuffer(p->display, *(p->pipe.filters)); + status = vaMapBuffer(p->display, buffer, (void**)¶m); + if (!check_error(vf, status, "vaMapBuffer()")) + goto cleanup; + param->surface = in_id; param->surface_region = NULL; param->output_region = NULL; |