Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some Use-After-Free issues with the D3D11 integration with FFmpeg #953

Merged
merged 2 commits into from
Oct 8, 2022

Conversation

Xaymar
Copy link
Contributor

@Xaymar Xaymar commented Oct 8, 2022

Explain the Pull Request

The D3D11 backend was incorrectly double-freeing some objects.

Completion Checklist

  • I have added myself to the Copyright and License headers and files.
  • I will maintain this code in the future and have added myself to CODEOWNERS.
  • I have tested this change on the following platforms:
    • MacOS 10.15
    • MacOS 11
    • MacOS 12
    • Ubuntu 20.04
    • Ubuntu 22.04
    • Windows 10
    • Windows 11

…once

While this had no actual effect due to the immediate ID3D11DeviceContext being tied to the ID3D11Device itself, it shouldn't have occured at all. With this there should now only be a single Release() call for every AddRef() call.
@Xaymar Xaymar merged commit 87d1ad5 into master Oct 8, 2022
@Xaymar Xaymar deleted the patch/ffmpeg-d3d11-useafterfree branch October 8, 2022 06:15
@Xaymar Xaymar added this to the 0.12 milestone Mar 18, 2023
@Xaymar Xaymar added this to the FFmpeg Encoders (Component) milestone Dec 11, 2023
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.

1 participant