summaryrefslogtreecommitdiffstats
path: root/video/vaapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/vaapi.c')
-rw-r--r--video/vaapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/vaapi.c b/video/vaapi.c
index fc6a7819e2..4607be9052 100644
--- a/video/vaapi.c
+++ b/video/vaapi.c
@@ -405,13 +405,13 @@ struct mp_image *va_surface_wrap(struct va_surface *surface)
VASurfaceID va_surface_id_in_mp_image(const struct mp_image *mpi)
{
- return mpi && IMGFMT_IS_VAAPI(mpi->imgfmt) ?
+ return mpi && mpi->imgfmt == IMGFMT_VAAPI ?
(VASurfaceID)(uintptr_t)mpi->planes[3] : VA_INVALID_ID;
}
struct va_surface *va_surface_in_mp_image(struct mp_image *mpi)
{
- return mpi && IMGFMT_IS_VAAPI(mpi->imgfmt) ?
+ return mpi && mpi->imgfmt == IMGFMT_VAAPI ?
(struct va_surface*)mpi->planes[0] : NULL;
}