forked from FFmpeg/FFmpeg
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.
This commit is contained in:
parent
9949c1dd78
commit
5860a966d2
1 changed files with 2 additions and 2 deletions
|
@ -231,7 +231,7 @@ static int testsrc_vulkan_activate(AVFilterContext *ctx)
|
|||
return AVERROR(ENOMEM);
|
||||
|
||||
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)
|
||||
return err;
|
||||
}
|
||||
|
@ -250,7 +250,7 @@ static int testsrc_vulkan_activate(AVFilterContext *ctx)
|
|||
frame->sample_aspect_ratio = s->sar;
|
||||
if (!s->draw_once) {
|
||||
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) {
|
||||
av_frame_free(&frame);
|
||||
return err;
|
||||
|
|
Loading…
Add table
Reference in a new issue