Skip to content

Commit 496b8d7

Browse files
committed
fftools/ffmpeg_filter: stop setting a no-op option
1 parent 26ae8d1 commit 496b8d7

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

fftools/ffmpeg_filter.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,15 +1588,9 @@ static int configure_output_audio_filter(FilterGraph *fg, AVFilterGraph *graph,
15881588
int ret;
15891589

15901590
snprintf(name, sizeof(name), "out_%s", ofp->name);
1591-
ofp->filter = avfilter_graph_alloc_filter(graph,
1592-
avfilter_get_by_name("abuffersink"),
1593-
name);
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);
1591+
ret = avfilter_graph_create_filter(&ofp->filter,
1592+
avfilter_get_by_name("abuffersink"),
1593+
name, NULL, NULL, graph);
16001594
if (ret < 0)
16011595
return ret;
16021596

0 commit comments

Comments
 (0)