static int config_props(AVFilterLink *link)
{
    YADIFContext *s = link->src->priv;
    link->time_base.num = link->src->inputs[0]->time_base.num;
    link->time_base.den = link->src->inputs[0]->time_base.den * 2;
    link->w             = link->src->inputs[0]->w;
    link->h             = link->src->inputs[0]->h;
    if (s->mode & 1)
        link->frame_rate = av_mul_q(link->src->inputs[0]->frame_rate,
                                    (AVRational){2, 1});
    s->csp = av_pix_fmt_desc_get(link->format);
    if (s->csp->comp[0].depth > 8) {
        s->filter_line  = filter_line_c_16bit;
        s->filter_edges = filter_edges_16bit;
    } else {
        s->filter_line  = filter_line_c;
        s->filter_edges = filter_edges;
        if (ARCH_X86)
            ff_yadif_init_x86(s);
    }
    return 0;
}
['static int config_props(AVFilterLink *link)\n{\n    YADIFContext *s = link->src->priv;\n    link->time_base.num = link->src->inputs[0]->time_base.num;\n    link->time_base.den = link->src->inputs[0]->time_base.den * 2;\n    link->w             = link->src->inputs[0]->w;\n    link->h             = link->src->inputs[0]->h;\n    if (s->mode & 1)\n        link->frame_rate = av_mul_q(link->src->inputs[0]->frame_rate,\n                                    (AVRational){2, 1});\n    s->csp = av_pix_fmt_desc_get(link->format);\n    if (s->csp->comp[0].depth > 8) {\n        s->filter_line  = filter_line_c_16bit;\n        s->filter_edges = filter_edges_16bit;\n    } else {\n        s->filter_line  = filter_line_c;\n        s->filter_edges = filter_edges;\n        if (ARCH_X86)\n            ff_yadif_init_x86(s);\n    }\n    return 0;\n}', 'AVRational av_mul_q(AVRational b, AVRational c)\n{\n    av_reduce(&b.num, &b.den,\n               b.num * (int64_t) c.num,\n               b.den * (int64_t) c.den, INT_MAX);\n    return b;\n}', 'const AVPixFmtDescriptor *av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)\n{\n    if (pix_fmt < 0 || pix_fmt >= AV_PIX_FMT_NB)\n        return NULL;\n    return &av_pix_fmt_descriptors[pix_fmt];\n}']