You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/avgblur_vulkan: check if shader is created with success
Signed-off-by: Wu Jianhua <jianhua.wu@intel.com>
This commit is contained in:
@@ -111,6 +111,8 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
|
|||||||
|
|
||||||
shd = ff_vk_init_shader(s->pl_hor, "avgblur_compute_hor",
|
shd = ff_vk_init_shader(s->pl_hor, "avgblur_compute_hor",
|
||||||
VK_SHADER_STAGE_COMPUTE_BIT);
|
VK_SHADER_STAGE_COMPUTE_BIT);
|
||||||
|
if (!shd)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
ff_vk_set_compute_shader_sizes(shd, (int [3]){ CGS, 1, 1 });
|
ff_vk_set_compute_shader_sizes(shd, (int [3]){ CGS, 1, 1 });
|
||||||
|
|
||||||
@@ -154,6 +156,8 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
|
|||||||
|
|
||||||
shd = ff_vk_init_shader(s->pl_ver, "avgblur_compute_ver",
|
shd = ff_vk_init_shader(s->pl_ver, "avgblur_compute_ver",
|
||||||
VK_SHADER_STAGE_COMPUTE_BIT);
|
VK_SHADER_STAGE_COMPUTE_BIT);
|
||||||
|
if (!shd)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
ff_vk_set_compute_shader_sizes(shd, (int [3]){ 1, CGS, 1 });
|
ff_vk_set_compute_shader_sizes(shd, (int [3]){ 1, CGS, 1 });
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user