x11/mplayer: fix for llvm22

This commit is contained in:
kirill
2026-05-23 16:33:35 +00:00
parent f0bbed4b81
commit 202f0b8c2a
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ COMMENT= movie player supporting many formats
V= 20251123
FFMPEG_V= 8.1.1
REVISION= 1
REVISION= 2
DISTNAME= mplayer-${V}
CATEGORIES= x11 multimedia
SITES= https://comstyle.com/source/
+3 -2
View File
@@ -1,13 +1,14 @@
Index: sub/av_sub.c
--- sub/av_sub.c.orig
+++ sub/av_sub.c
@@ -30,8 +30,7 @@ void reset_avsub(struct sh_sub *sh)
@@ -30,8 +30,8 @@ void reset_avsub(struct sh_sub *sh)
AVCodecContext *ctx = sh->context;
ctx->extradata = NULL;
ctx->extradata_size = 0;
- avcodec_close(sh->context);
- av_freep(&sh->context);
+ avcodec_free_context(&sh->context);
+ avcodec_free_context(&ctx);
+ sh->context = ctx;
}
}