mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-28 18:41:14 +00:00
ffmpeg/hwapi/d3d11: Remove double unref
This commit is contained in:
parent
79bd387972
commit
0b23d28164
1 changed files with 1 additions and 4 deletions
|
@ -188,10 +188,7 @@ std::shared_ptr<AVFrame> d3d11_instance::allocate_frame(AVBufferRef* frames)
|
|||
auto gctx = streamfx::obs::gs::context();
|
||||
|
||||
// Allocate a frame.
|
||||
auto frame = std::shared_ptr<AVFrame>(av_frame_alloc(), [](AVFrame* frame) {
|
||||
av_frame_unref(frame);
|
||||
av_frame_free(&frame);
|
||||
});
|
||||
auto frame = std::shared_ptr<AVFrame>(av_frame_alloc(), [](AVFrame* frame) { av_frame_free(&frame); });
|
||||
|
||||
// Create the necessary buffers.
|
||||
if (av_hwframe_get_buffer(frames, frame.get(), 0) < 0) {
|
||||
|
|
Loading…
Reference in a new issue