diff options
Diffstat (limited to 'video/vaapi.c')
-rw-r--r-- | video/vaapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/vaapi.c b/video/vaapi.c index 9a8ab1ac29..fc6a7819e2 100644 --- a/video/vaapi.c +++ b/video/vaapi.c @@ -417,7 +417,7 @@ struct va_surface *va_surface_in_mp_image(struct mp_image *mpi) VASurfaceID va_surface_id(const struct va_surface *surface) { - return surface->id; + return surface ? surface->id : VA_INVALID_ID; } bool va_image_map(VADisplay display, VAImage *image, struct mp_image *mpi) |