frontends/va: Add missing NULL check for additional output surface

Fixes: efc6d27fd4 ("frontends/va: Add support for decode/encode processing")
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41024>
(cherry picked from commit 3d16845e9a)
This commit is contained in:
David Rosca 2026-04-17 13:37:40 +02:00 committed by Eric Engestrom
parent 01b71770ac
commit 12932633cb
2 changed files with 3 additions and 1 deletions

View file

@ -2524,7 +2524,7 @@
"description": "frontends/va: Add missing NULL check for additional output surface",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "efc6d27fd4bf863f205e1218bc89260c21f8b983",
"notes": null

View file

@ -553,6 +553,8 @@ vlVaHandleVAProcPipelineParameterBufferType(vlVaDriver *drv, vlVaContext *contex
return VA_STATUS_ERROR_INVALID_PARAMETER;
dst_surface = handle_table_get(drv->htab, param->additional_outputs[0]);
if (!dst_surface)
return VA_STATUS_ERROR_INVALID_SURFACE;
}
src_region = vlVaRegionDefault(param->surface_region, src_surface, &def_src_region);