[FFmpeg-cvslog] fftools/ffmpeg_filter: drop unused AUTO_INSERT_FILTER_INPUT()

Anton Khirnov git at videolan.org
Mon Apr 24 18:02:47 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Apr 18 09:08:27 2023 +0200| [385430592a891949d8c7be4fda3aa4019cd174ab] | committer: Anton Khirnov

fftools/ffmpeg_filter: drop unused AUTO_INSERT_FILTER_INPUT()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=385430592a891949d8c7be4fda3aa4019cd174ab
---

 fftools/ffmpeg_filter.c | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 52a5d19351..ea182089b1 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -1035,27 +1035,6 @@ static int configure_input_audio_filter(FilterGraph *fg, InputFilter *ifilter,
         return ret;
     last_filter = ifilter->filter;
 
-#define AUTO_INSERT_FILTER_INPUT(opt_name, filter_name, arg) do {                 \
-    AVFilterContext *filt_ctx;                                              \
-                                                                            \
-    av_log(NULL, AV_LOG_INFO, opt_name " is forwarded to lavfi "            \
-           "similarly to -af " filter_name "=%s.\n", arg);                  \
-                                                                            \
-    snprintf(name, sizeof(name), "graph_%d_%s_in_%d_%d",      \
-                fg->index, filter_name, ist->file_index, ist->st->index);   \
-    ret = avfilter_graph_create_filter(&filt_ctx,                           \
-                                       avfilter_get_by_name(filter_name),   \
-                                       name, arg, NULL, fg->graph);         \
-    if (ret < 0)                                                            \
-        return ret;                                                         \
-                                                                            \
-    ret = avfilter_link(last_filter, 0, filt_ctx, 0);                       \
-    if (ret < 0)                                                            \
-        return ret;                                                         \
-                                                                            \
-    last_filter = filt_ctx;                                                 \
-} while (0)
-
     snprintf(name, sizeof(name), "trim for input stream %d:%d",
              ist->file_index, ist->st->index);
     if (copy_ts) {



More information about the ffmpeg-cvslog mailing list