[PATCH 16/18] libvo/vo_png: use avcodec_free_context()
Nicolas George <[email protected]> Tue, 28 Jul 2026 20:15:12 +0200
| Newsgroups | gmane.comp.video.mplayer.devel |
|---|---|
| Message-ID | <[email protected]> |
---
libvo/vo_png.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/libvo/vo_png.c b/libvo/vo_png.c
index 7523dca74..86a3d0c03 100644
--- a/libvo/vo_png.c
+++ b/libvo/vo_png.c
@@ -126,8 +126,7 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
if (avctx && png_format != format) {
- avcodec_close(avctx);
- av_freep(&avctx);
+ avcodec_free_context(&avctx);
}
if (!avctx) {
@@ -214,8 +213,7 @@ query_format(uint32_t format)
}
static void uninit(void){
- avcodec_close(avctx);
- av_freep(&avctx);
+ avcodec_free_context(&avctx);
av_freep(&outbuffer);
outbuffer_size = 0;
free(png_outdir);
--
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