Ticket #10722: 09_fix_librsvgdec_compilation.patch

File 09_fix_librsvgdec_compilation.patch, 783 bytes (added by Lastique, 3 years ago)

A fix for the compilation error.

  • libavcodec/librsvgdec.c

    https://trac.ffmpeg.org/ticket/10722
    
    old new static int librsvg_decode_frame(AVCodecC  
    8888    ret = ff_set_dimensions(avctx, dimensions.width, dimensions.height);
    8989    if (ret < 0)
    9090        goto end;
    9191
    9292    avctx->pix_fmt = AV_PIX_FMT_RGB32;
     93#if LIBRSVG_MAJOR_VERSION > 2 || LIBRSVG_MAJOR_VERSION == 2 && LIBRSVG_MINOR_VERSION >= 52
    9394    viewport.width = dimensions.width;
    9495    viewport.height = dimensions.height;
     96#endif
    9597
    9698    ret = ff_get_buffer(avctx, frame, 0);
    9799    if (ret < 0)
    98100        goto end;
    99101