Revision 037be76e ffplay.c

View differences:

ffplay.c
1798 1798
    snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%d", sws_flags);
1799 1799
    graph->scale_sws_opts = av_strdup(sws_flags_str);
1800 1800

  
1801
    if (avfilter_open(&filt_src, &input_filter,  "src") < 0) goto the_end;
1802
    if (avfilter_open(&filt_out, &ffsink      ,  "out") < 0) goto the_end;
1803

  
1804
    if(avfilter_init_filter(filt_src, NULL, is))             goto the_end;
1805
    if(avfilter_init_filter(filt_out, NULL, &ffsink_ctx))    goto the_end;
1806

  
1801
    if (avfilter_graph_create_filter(&filt_src, &input_filter, "src",
1802
                                     NULL, is, graph) < 0)
1803
        goto the_end;
1804
    if (avfilter_graph_create_filter(&filt_out, &ffsink, "out",
1805
                                     NULL, &ffsink_ctx, graph) < 0)
1806
        goto the_end;
1807 1807

  
1808 1808
    if(vfilters) {
1809 1809
        AVFilterInOut *outputs = av_malloc(sizeof(AVFilterInOut));
......
1825 1825
    } else {
1826 1826
        if(avfilter_link(filt_src, 0, filt_out, 0) < 0)          goto the_end;
1827 1827
    }
1828
    avfilter_graph_add_filter(graph, filt_src);
1829
    avfilter_graph_add_filter(graph, filt_out);
1830 1828

  
1831 1829
    if (avfilter_graph_config(graph, NULL) < 0)
1832 1830
        goto the_end;

Also available in: Unified diff