image: add comment

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
Maxime Ripard
2018-04-20 10:22:15 +02:00
parent fdf8c591e0
commit c271437f4e
+3 -1
View File
@@ -78,8 +78,10 @@ VAStatus sunxi_cedrus_CreateImage(VADriverContextP ctx, VAImageFormat *format,
obj_img = IMAGE(image->image_id);
if (sunxi_cedrus_CreateBuffer(ctx, 0, VAImageBufferType, image->data_size,
1, NULL, &image->buf) != VA_STATUS_SUCCESS)
1, NULL, &image->buf) != VA_STATUS_SUCCESS) {
// TODO: free image object
return VA_STATUS_ERROR_ALLOCATION_FAILED;
}
obj_img->buf = image->buf;
return VA_STATUS_SUCCESS;