From 202f0b8c2aee6eeb014bfd70ad6fcf9a659e64a6 Mon Sep 17 00:00:00 2001 From: kirill Date: Sat, 23 May 2026 16:33:35 +0000 Subject: [PATCH] x11/mplayer: fix for llvm22 --- x11/mplayer/Makefile | 2 +- x11/mplayer/patches/patch-sub_av_sub_c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/x11/mplayer/Makefile b/x11/mplayer/Makefile index 63123672506..2112793503e 100644 --- a/x11/mplayer/Makefile +++ b/x11/mplayer/Makefile @@ -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/ diff --git a/x11/mplayer/patches/patch-sub_av_sub_c b/x11/mplayer/patches/patch-sub_av_sub_c index ad118ddcab4..231a7789577 100644 --- a/x11/mplayer/patches/patch-sub_av_sub_c +++ b/x11/mplayer/patches/patch-sub_av_sub_c @@ -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; } }