---
fftools/ffmpeg_filter.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 2ff7c4c4f4..28c5223c5d 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -1586,15 +1586,9 @@ static int configure_output_audio_filter(FilterGraph
*fg, AVFilterGraph *graph,
int ret;
snprintf(name, sizeof(name), "out_%s", ofp->name);
- ofp->filter = avfilter_graph_alloc_filter(graph,
-
avfilter_get_by_name("abuffersink"),
- name);
- if (!ofp->filter)
- return AVERROR(ENOMEM);
- if ((ret = av_opt_set_int(ofp->filter, "all_channel_counts", 1,
AV_OPT_SEARCH_CHILDREN)) < 0)
- return ret;
-
- ret = avfilter_init_dict(ofp->filter, NULL);
+ ret = avfilter_graph_create_filter(&ofp->filter,
+ avfilter_get_by_name("abuffersink"),
+ name, NULL, NULL, graph);
if (ret < 0)
return ret;
--
2.43.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".