void avfilter_destroy(AVFilterContext *filter)

{

    int i;



    if(filter->filter->uninit)

        filter->filter->uninit(filter);



    for(i = 0; i < filter->input_count; i ++) {

        if(filter->inputs[i]) {


            filter->inputs[i]->src->outputs[filter->inputs[i]->srcpad] = NULL;

            avfilter_formats_unref(&filter->inputs[i]->in_formats);

            avfilter_formats_unref(&filter->inputs[i]->out_formats);

        }

        av_freep(&filter->inputs[i]);

    }

    for(i = 0; i < filter->output_count; i ++) {

        if(filter->outputs[i]) {

            if (filter->outputs[i]->dst)

            filter->outputs[i]->dst->inputs[filter->outputs[i]->dstpad] = NULL;

            avfilter_formats_unref(&filter->outputs[i]->in_formats);

            avfilter_formats_unref(&filter->outputs[i]->out_formats);

        }

        av_freep(&filter->outputs[i]);

    }



    av_freep(&filter->name);

    av_freep(&filter->input_pads);

    av_freep(&filter->output_pads);

    av_freep(&filter->inputs);

    av_freep(&filter->outputs);

    av_freep(&filter->priv);

    av_free(filter);

}
void avfilter_destroy(AVFilterContext *filter)

{

    int i;



    if(filter->filter->uninit)

        filter->filter->uninit(filter);



    for(i = 0; i < filter->input_count; i ++) {

        if(filter->inputs[i]) {


            filter->inputs[i]->src->outputs[filter->inputs[i]->srcpad] = NULL;

            avfilter_formats_unref(&filter->inputs[i]->in_formats);

            avfilter_formats_unref(&filter->inputs[i]->out_formats);

        }

        av_freep(&filter->inputs[i]);

    }

    for(i = 0; i < filter->output_count; i ++) {

        if(filter->outputs[i]) {

            if (filter->outputs[i]->dst)

            filter->outputs[i]->dst->inputs[filter->outputs[i]->dstpad] = NULL;

            avfilter_formats_unref(&filter->outputs[i]->in_formats);

            avfilter_formats_unref(&filter->outputs[i]->out_formats);

        }

        av_freep(&filter->outputs[i]);

    }



    av_freep(&filter->name);

    av_freep(&filter->input_pads);

    av_freep(&filter->output_pads);

    av_freep(&filter->inputs);

    av_freep(&filter->outputs);

    av_freep(&filter->priv);

    av_free(filter);

}
void FUNC_0(AVFilterContext *VAR_0)

{

    int VAR_1;



    if(VAR_0->VAR_0->uninit)

        VAR_0->VAR_0->uninit(VAR_0);



    for(VAR_1 = 0; VAR_1 < VAR_0->input_count; VAR_1 ++) {

        if(VAR_0->inputs[VAR_1]) {


            VAR_0->inputs[VAR_1]->src->outputs[VAR_0->inputs[VAR_1]->srcpad] = NULL;

            avfilter_formats_unref(&VAR_0->inputs[VAR_1]->in_formats);

            avfilter_formats_unref(&VAR_0->inputs[VAR_1]->out_formats);

        }

        av_freep(&VAR_0->inputs[VAR_1]);

    }

    for(VAR_1 = 0; VAR_1 < VAR_0->output_count; VAR_1 ++) {

        if(VAR_0->outputs[VAR_1]) {

            if (VAR_0->outputs[VAR_1]->dst)

            VAR_0->outputs[VAR_1]->dst->inputs[VAR_0->outputs[VAR_1]->dstpad] = NULL;

            avfilter_formats_unref(&VAR_0->outputs[VAR_1]->in_formats);

            avfilter_formats_unref(&VAR_0->outputs[VAR_1]->out_formats);

        }

        av_freep(&VAR_0->outputs[VAR_1]);

    }



    av_freep(&VAR_0->name);

    av_freep(&VAR_0->input_pads);

    av_freep(&VAR_0->output_pads);

    av_freep(&VAR_0->inputs);

    av_freep(&VAR_0->outputs);

    av_freep(&VAR_0->priv);

    av_free(VAR_0);

}
void FUNC_0(AVFilterContext *VAR_0)
{ int VAR_1; if(VAR_0->VAR_0->uninit)
VAR_0->VAR_0->uninit(VAR_0); for(VAR_1 = 0; VAR_1 < VAR_0->input_count; VAR_1 ++) { if(VAR_0->inputs[VAR_1]) { VAR_0->inputs[VAR_1]->src->outputs[VAR_0->inputs[VAR_1]->srcpad] = NULL; avfilter_formats_unref(&VAR_0->inputs[VAR_1]->in_formats); avfilter_formats_unref(&VAR_0->inputs[VAR_1]->out_formats); } av_freep(&VAR_0->inputs[VAR_1]); } for(VAR_1 = 0; VAR_1 < VAR_0->output_count; VAR_1 ++) { if(VAR_0->outputs[VAR_1]) { if (VAR_0->outputs[VAR_1]->dst)
VAR_0->outputs[VAR_1]->dst->inputs[VAR_0->outputs[VAR_1]->dstpad] = NULL; avfilter_formats_unref(&VAR_0->outputs[VAR_1]->in_formats); avfilter_formats_unref(&VAR_0->outputs[VAR_1]->out_formats); } av_freep(&VAR_0->outputs[VAR_1]); } av_freep(&VAR_0->name); av_freep(&VAR_0->input_pads); av_freep(&VAR_0->output_pads); av_freep(&VAR_0->inputs); av_freep(&VAR_0->outputs); av_freep(&VAR_0->priv); av_free(VAR_0); }