The branch, master has been updated
       via  b2910ec92ef0f12f2cee56be331f8ae234ead4a4 (commit)
      from  ae448e00afb43d7f72dfa9c82a4c45994e4fea6a (commit)


- Log -----------------------------------------------------------------
commit b2910ec92ef0f12f2cee56be331f8ae234ead4a4
Author:     Cameron Gutman <aicomman...@gmail.com>
AuthorDate: Sun Aug 10 16:11:55 2025 -0500
Commit:     Cameron Gutman <aicomman...@gmail.com>
CommitDate: Sun Aug 31 14:36:20 2025 -0500

    avcodec/mfenc: fix memory leak with D3D11 input surfaces
    
    Fixes: d56522c6eb75 ("avcodec/mfenc: add support for D3D11 input surfaces")
    Signed-off-by: Cameron Gutman <aicomman...@gmail.com>

diff --git a/libavcodec/mfenc.c b/libavcodec/mfenc.c
index 942c75cb9d..6f79386404 100644
--- a/libavcodec/mfenc.c
+++ b/libavcodec/mfenc.c
@@ -1366,6 +1366,9 @@ static int mf_close(AVCodecContext *avctx)
     if (c->async_events)
         IMFMediaEventGenerator_Release(c->async_events);
 
+    if (c->dxgiManager)
+        IMFDXGIDeviceManager_Release(c->dxgiManager);
+
 #if !HAVE_UWP
     if (c->library)
         ff_free_mf(&c->functions, &c->mft);

-----------------------------------------------------------------------

Summary of changes:
 libavcodec/mfenc.c | 3 +++
 1 file changed, 3 insertions(+)


hooks/post-receive
-- 

_______________________________________________
ffmpeg-cvslog mailing list -- ffmpeg-cvslog@ffmpeg.org
To unsubscribe send an email to ffmpeg-cvslog-le...@ffmpeg.org

Reply via email to