static av_cold int vsink_init(AVFilterContext *ctx, const char *args, void *opaque)

{

    BufferSinkContext *buf = ctx->priv;

    av_unused AVBufferSinkParams *params;



    if (!opaque) {

        av_log(ctx, AV_LOG_ERROR,

               "No opaque field provided\n");

        return AVERROR(EINVAL);

    } else {

#if FF_API_OLD_VSINK_API

        buf->pixel_fmts = (const enum PixelFormat *)opaque;

#else

        params = (AVBufferSinkParams *)opaque;

        buf->pixel_fmts = params->pixel_fmts;

#endif

    }



    return common_init(ctx);

}

static av_cold int vsink_init(AVFilterContext *ctx, const char *args, void *opaque)

{

    BufferSinkContext *buf = ctx->priv;

    av_unused AVBufferSinkParams *params;



    if (!opaque) {

        av_log(ctx, AV_LOG_ERROR,

               "No opaque field provided\n");

        return AVERROR(EINVAL);

    } else {

#if FF_API_OLD_VSINK_API

        buf->pixel_fmts = (const enum PixelFormat *)opaque;

#else

        params = (AVBufferSinkParams *)opaque;

        buf->pixel_fmts = params->pixel_fmts;

#endif

    }



    return common_init(ctx);

}

static av_cold int FUNC_0(AVFilterContext *ctx, const char *args, void *opaque)

{

    BufferSinkContext *buf = ctx->priv;

    av_unused AVBufferSinkParams *params;



    if (!opaque) {

        av_log(ctx, AV_LOG_ERROR,

               "No opaque field provided\n");

        return AVERROR(EINVAL);

    } else {

#if FF_API_OLD_VSINK_API

        buf->pixel_fmts = (const enum PixelFormat *)opaque;

#else

        params = (AVBufferSinkParams *)opaque;

        buf->pixel_fmts = params->pixel_fmts;

#endif

    }



    return common_init(ctx);

}

static av_cold int FUNC_0(AVFilterContext *ctx, const char *args, void *opaque)
{ BufferSinkContext *buf = ctx->priv; av_unused AVBufferSinkParams *params; if (!opaque) { av_log(ctx, AV_LOG_ERROR,
"No opaque field provided\n"); return AVERROR(EINVAL); } else { #if FF_API_OLD_VSINK_API
buf->pixel_fmts = (const enum PixelFormat *)opaque; #else
params = (AVBufferSinkParams *)opaque; buf->pixel_fmts = params->pixel_fmts; #endif
} return common_init(ctx); }