mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +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> (cherry picked from commit3d16845e9a) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41402>
This commit is contained in:
parent
408b08da2a
commit
9353a223aa
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue