int avfilter_default_config_output_link(AVFilterLink *link)

{

    if (link->src->input_count && link->src->inputs[0]) {

        if (link->type == AVMEDIA_TYPE_VIDEO) {

            link->w = link->src->inputs[0]->w;

            link->h = link->src->inputs[0]->h;

            link->time_base = link->src->inputs[0]->time_base;

        } else if (link->type == AVMEDIA_TYPE_AUDIO) {

            link->channel_layout = link->src->inputs[0]->channel_layout;

            link->sample_rate    = link->src->inputs[0]->sample_rate;

        }

    } else {

        /* XXX: any non-simple filter which would cause this branch to be taken

         * really should implement its own config_props() for this link. */

        return -1;

    }



    return 0;

}

int avfilter_default_config_output_link(AVFilterLink *link)

{

    if (link->src->input_count && link->src->inputs[0]) {

        if (link->type == AVMEDIA_TYPE_VIDEO) {

            link->w = link->src->inputs[0]->w;

            link->h = link->src->inputs[0]->h;

            link->time_base = link->src->inputs[0]->time_base;

        } else if (link->type == AVMEDIA_TYPE_AUDIO) {

            link->channel_layout = link->src->inputs[0]->channel_layout;

            link->sample_rate    = link->src->inputs[0]->sample_rate;

        }

    } else {

        



        return -1;

    }



    return 0;

}

int FUNC_0(AVFilterLink *VAR_0)

{

    if (VAR_0->src->input_count && VAR_0->src->inputs[0]) {

        if (VAR_0->type == AVMEDIA_TYPE_VIDEO) {

            VAR_0->w = VAR_0->src->inputs[0]->w;

            VAR_0->h = VAR_0->src->inputs[0]->h;

            VAR_0->time_base = VAR_0->src->inputs[0]->time_base;

        } else if (VAR_0->type == AVMEDIA_TYPE_AUDIO) {

            VAR_0->channel_layout = VAR_0->src->inputs[0]->channel_layout;

            VAR_0->sample_rate    = VAR_0->src->inputs[0]->sample_rate;

        }

    } else {

        



        return -1;

    }



    return 0;

}

int FUNC_0(AVFilterLink *VAR_0)
{ if (VAR_0->src->input_count && VAR_0->src->inputs[0]) { if (VAR_0->type == AVMEDIA_TYPE_VIDEO) { VAR_0->w = VAR_0->src->inputs[0]->w; VAR_0->h = VAR_0->src->inputs[0]->h; VAR_0->time_base = VAR_0->src->inputs[0]->time_base; } else if (VAR_0->type == AVMEDIA_TYPE_AUDIO) { VAR_0->channel_layout = VAR_0->src->inputs[0]->channel_layout; VAR_0->sample_rate    = VAR_0->src->inputs[0]->sample_rate; } } else { return -1; } return 0; }