lavfi/vsrc_testsrc_vulkan: fix -Wint-conversion

While VK_NULL_HANDLE is equivalent to NULL on 64-bit platforms, the same is not
true across all platforms.

Fixes building with gcc-14.
release/7.0
Lynne 1 year ago
parent 9949c1dd78
commit 5860a966d2
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 4
      libavfilter/vsrc_testsrc_vulkan.c

@ -231,7 +231,7 @@ static int testsrc_vulkan_activate(AVFilterContext *ctx)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
err = ff_vk_filter_process_simple(&s->vkctx, &s->e, &s->pl, s->picref, NULL, err = ff_vk_filter_process_simple(&s->vkctx, &s->e, &s->pl, s->picref, NULL,
NULL, &s->opts, sizeof(s->opts)); VK_NULL_HANDLE, &s->opts, sizeof(s->opts));
if (err < 0) if (err < 0)
return err; return err;
} }
@ -250,7 +250,7 @@ static int testsrc_vulkan_activate(AVFilterContext *ctx)
frame->sample_aspect_ratio = s->sar; frame->sample_aspect_ratio = s->sar;
if (!s->draw_once) { if (!s->draw_once) {
err = ff_vk_filter_process_simple(&s->vkctx, &s->e, &s->pl, frame, NULL, err = ff_vk_filter_process_simple(&s->vkctx, &s->e, &s->pl, frame, NULL,
NULL, &s->opts, sizeof(s->opts)); VK_NULL_HANDLE, &s->opts, sizeof(s->opts));
if (err < 0) { if (err < 0) {
av_frame_free(&frame); av_frame_free(&frame);
return err; return err;

Loading…
Cancel
Save