Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

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
Owner

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant