summaryrefslogtreecommitdiffstats
path: root/video/vaapi.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-27 17:44:21 +0200
committerwm4 <wm4@nowhere>2013-09-27 18:00:03 +0200
commit0901fc8e0ea4b6c0337add563d1763f0db238023 (patch)
tree3e4e4b8f172081902afcf72d87ae444e8d17057b /video/vaapi.h
parent4d2f354da651a3c1fd9776ed5829f57961a46c10 (diff)
downloadmpv-0901fc8e0ea4b6c0337add563d1763f0db238023.tar.bz2
mpv-0901fc8e0ea4b6c0337add563d1763f0db238023.tar.xz
vaapi: check image format in va_surface_upload()
Just for robustness. Also print a warning in vo_vaapi if this happens.
Diffstat (limited to 'video/vaapi.h')
-rw-r--r--video/vaapi.h2
1 files changed, 1 insertions, 1 deletions
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);