diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-09-28 17:26:41 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-10-07 10:53:13 +0200 |
commit | 496b8d7a130eaa3eba1ea315a74cc51b08b04e6f (patch) | |
tree | 1d44e295e2953f008ff4fae5e28ecd83f8430a70 | |
parent | 26ae8d1891eb6537b9c7b2f4a711706dcd2d0cd8 (diff) | |
download | ffmpeg-496b8d7a130eaa3eba1ea315a74cc51b08b04e6f.tar.gz |
fftools/ffmpeg_filter: stop setting a no-op option
-rw-r--r-- | fftools/ffmpeg_filter.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index b1ca710999..faab003e71 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -1588,15 +1588,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; |