diff options
-rwxr-xr-x | src/i965_post_processing.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c index ea3d350..07483f8 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; |