Unified · Split
| @@ -1588,15 +1588,9 @@ static int configure_output_audio_filter(FilterGraph *fg, AVFilterGraph *graph, · 1587 unmodified lines | |||
| 1588 | int ret; | 1588 | int ret; |
| 1589 | 1589 | ||
| 1590 | snprintf(name, sizeof(name), "out_%s", ofp->name); | 1590 | snprintf(name, sizeof(name), "out_%s", ofp->name); |
| 1591 | ofp->filter = avfilter_graph_alloc_filter(graph, | 1591 | ret = avfilter_graph_create_filter(&ofp->filter, |
| 1592 | avfilter_get_by_name("abuffersink"), | 1592 | avfilter_get_by_name("abuffersink"), |
| 1593 | name); | 1593 | name, NULL, NULL, graph); |
| 1594 | if (!ofp->filter) | ||
| 1595 | return AVERROR(ENOMEM); | ||
| 1596 | if ((ret = av_opt_set_int(ofp->filter, "all_channel_counts", 1, AV_OPT_SEARCH_CHILDREN)) < 0) | ||
| 1597 | return ret; | ||
| 1598 | |||
| 1599 | ret = avfilter_init_dict(ofp->filter, NULL); | ||
| 1600 | if (ret < 0) | 1594 | if (ret < 0) |
| 1601 | return ret; | 1595 | return ret; |
| 1602 | 1596 | ||