mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
x11/mplayer: fix for llvm22
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user