[PATCH 13/18] libmpcodecs/vf_mcdeint: use avcodec_free_context()

Nicolas George <[email protected]> Tue, 28 Jul 2026 20:15:09 +0200
Newsgroups gmane.comp.video.mplayer.devel
Message-ID <[email protected]>
---
 libmpcodecs/vf_mcdeint.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libmpcodecs/vf_mcdeint.c b/libmpcodecs/vf_mcdeint.c
index d7c91e1d0..06c746b27 100644
--- a/libmpcodecs/vf_mcdeint.c
+++ b/libmpcodecs/vf_mcdeint.c
@@ -313,8 +313,7 @@ static void uninit(struct vf_instance *vf){
     }
 #endif
     if (vf->priv->avctx_enc) {
-    avcodec_close(vf->priv->avctx_enc);
-    av_freep(&vf->priv->avctx_enc);
+        avcodec_free_context(&vf->priv->avctx_enc);
     }
 
     free(vf->priv->outbuf);
-- 
2.53.0

_______________________________________________
MPlayer-dev-eng mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo/%(_internal_name)s