Edit

IABSD.fr/ports/x11/mplayer/patches/patch-libvo_vo_png_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-libvo_vo_png_c
  • Index: libvo/vo_png.c
    --- libvo/vo_png.c.orig
    +++ libvo/vo_png.c
    @@ -126,8 +126,7 @@ config(uint32_t width, uint32_t height, uint32_t d_wid
     
     
         if (avctx && png_format != format) {
    -        avcodec_close(avctx);
    -        av_freep(&avctx);
    +        avcodec_free_context(&avctx);
         }
     
         if (!avctx) {
    @@ -214,8 +213,7 @@ query_format(uint32_t format)
     }
     
     static void uninit(void){
    -    avcodec_close(avctx);
    -    av_freep(&avctx);
    +    avcodec_free_context(&avctx);
         av_freep(&outbuffer);
         outbuffer_size = 0;
         free(png_outdir);