Edit

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

Branch :

  • Show log

    Commit

  • Author : kirill
    Date : 2025-11-10 20:31:41
    Hash : bd9346df
    Message : x11/mplayer: fixed crash on exit with ffmpeg8 Reported by Walter Alejandro Iglesias Tested by: landry@, Walter Alejandro Iglesias

  • x11/mplayer/patches/patch-libmpcodecs_vf_screenshot_c
  • Index: libmpcodecs/vf_screenshot.c
    --- libmpcodecs/vf_screenshot.c.orig
    +++ libmpcodecs/vf_screenshot.c
    @@ -279,8 +279,7 @@ static int query_format(struct vf_instance *vf, unsign
     
     static void uninit(vf_instance_t *vf)
     {
    -    avcodec_close(vf->priv->avctx);
    -    av_freep(&vf->priv->avctx);
    +    avcodec_free_context(&vf->priv->avctx);
         if(vf->priv->ctx) sws_freeContext(vf->priv->ctx);
         av_freep(&vf->priv->pic->data[0]);
         av_frame_free(&vf->priv->pic);