Skip to content

fix(ffmpeg): re-add vulkan encode init error code patch#694

Merged
ReenigneArcher merged 1 commit into
LizardByte:masterfrom
neatnoise:fix/vulkan-encode-init-error
May 26, 2026
Merged

fix(ffmpeg): re-add vulkan encode init error code patch#694
ReenigneArcher merged 1 commit into
LizardByte:masterfrom
neatnoise:fix/vulkan-encode-init-error

Conversation

@neatnoise
Copy link
Copy Markdown
Contributor

Description

Re-add 01-fix-encode-init-error-code.patch for vulkan_encode.

The current FFmpeg submodule (b21e00e) on release/8.1 does not include the fix for the stale err variable in ff_vulkan_encode_init(). When ff_vk_qf_find() fails to locate a video encode queue the function returns 0 (success), leaving the encoder in a broken state and causing a SIGSEGV on the first encode attempt.

The patch changes the return value to AVERROR(ENOSYS) so callers get a proper error code.

Type of Change

  • fix: Bug fix (non-breaking change which fixes an issue)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed

AI Usage

  • None: No AI tools were used in creating this PR

The patch fixes vulkan_encode returning success (stale err=0) when the
video encode queue is missing, which leads to a SIGSEGV on the first
encode attempt.
@sonarqubecloud
Copy link
Copy Markdown

@ReenigneArcher ReenigneArcher merged commit 9d9fcff into LizardByte:master May 26, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants