package = ffmpeg
headers = libavcodec/avcodec.h libavformat/avformat.h libavutil/pixfmt.h libavutil/opt.h \
          libswscale/swscale.h libswresample/swresample.h
headerFilter = libavcodec/** libavformat/** libavutil/** \
          libswscale/** libswresample/**
linkerOpts = -lavutil -lavformat -lavcodec -lswscale -lswresample
---

static void av_buffer_unref2(AVBufferRef* ref) {
    AVBufferRef* copy = ref;
    av_buffer_unref(&copy);
}

static void avcodec_free_context2(AVCodecContext* ref) {
    AVCodecContext* copy = ref;
    avcodec_free_context(&copy);
}

static void avformat_free_context2(AVFormatContext* ref) {
    AVFormatContext* copy = ref;
    avformat_free_context(&copy);
}

static void swr_free2(SwrContext* ref) {
    SwrContext* copy = ref;
    swr_free(&copy);
}
