summaryrefslogtreecommitdiff
path: root/src/i965_post_processing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i965_post_processing.c')
-rwxr-xr-xsrc/i965_post_processing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index ea3d350d..07483f8f 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -5722,6 +5722,9 @@ i965_proc_picture_fast(VADriverContextP ctx,
if (!dst_obj_surface)
return VA_STATUS_ERROR_INVALID_SURFACE;
+ if (!dst_obj_surface->bo)
+ return VA_STATUS_ERROR_UNIMPLEMENTED;
+
if (dst_obj_surface->fourcc &&
dst_obj_surface->fourcc != src_obj_surface->fourcc)
pp_ops |= PP_OP_CHANGE_FORMAT;