From 0901fc8e0ea4b6c0337add563d1763f0db238023 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 27 Sep 2013 17:44:21 +0200 Subject: vaapi: check image format in va_surface_upload() Just for robustness. Also print a warning in vo_vaapi if this happens. --- video/vaapi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/vaapi.h') diff --git a/video/vaapi.h b/video/vaapi.h index 8e09193fd9..2dbf03a208 100644 --- a/video/vaapi.h +++ b/video/vaapi.h @@ -118,7 +118,7 @@ struct va_surface * va_surface_in_mp_image(struct mp_image *mpi); struct mp_image * va_surface_wrap(struct va_surface *surface); // takes ownership VASurfaceID va_surface_id(const struct va_surface *surface); VASurfaceID va_surface_id_in_mp_image(const struct mp_image *mpi); -bool va_surface_upload(struct va_surface *surface, const struct mp_image *mpi); +bool va_surface_upload(struct va_surface *surface, struct mp_image *mpi); struct mp_image * va_surface_download(struct va_surface *surface, const struct va_image_formats *formats, struct mp_image_pool *pool); -- cgit v1.2.3