[PATCH 08/18] libmpcodecs/vd_ffmpeg: let avcodec_free_context do its job
Nicolas George <[email protected]> Tue, 28 Jul 2026 20:15:04 +0200
| Newsgroups | gmane.comp.video.mplayer.devel |
|---|---|
| Message-ID | <[email protected]> |
---
libmpcodecs/vd_ffmpeg.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 2d2fc7281..75f3b9059 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -510,14 +510,6 @@ static void uninit(sh_video_t *sh){
);
}
- if (avctx) {
- if (avctx->codec && avcodec_close(avctx) < 0)
- mp_msg(MSGT_DECVIDEO, MSGL_ERR, MSGTR_CantCloseCodec);
-
- av_freep(&avctx->extradata);
- av_freep(&avctx->hwaccel_context);
- }
-
avcodec_free_context(&avctx);
av_frame_free(&ctx->pic);
free(ctx);
--
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