mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
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:
parent
d3dc812eb1
commit
3d16845e9a
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue