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>
This commit is contained in:
David Rosca 2026-04-17 13:37:40 +02:00 committed by Marge Bot
parent d3dc812eb1
commit 3d16845e9a

View file

@ -557,6 +557,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);