Edit

IABSD.fr/ports/x11/mplayer/patches/patch-sub_av_sub_c

Branch :

  • Show log

    Commit

  • Author : kirill
    Date : 2026-05-23 16:33:35
    Hash : 202f0b8c
    Message : x11/mplayer: fix for llvm22

  • x11/mplayer/patches/patch-sub_av_sub_c
  • Index: sub/av_sub.c
    --- sub/av_sub.c.orig
    +++ sub/av_sub.c
    @@ -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(&ctx);
    +        sh->context = ctx;
         }
     }