[FFmpeg-cvslog] fftools/ffmpeg_filter: drop a redundant check

Anton Khirnov git at videolan.org
Tue Apr 9 11:54:33 EEST 2024


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Apr  2 12:23:05 2024 +0200| [114cbaa316d7d71d942229cd665e76a0a5e3c24b] | committer: Anton Khirnov

fftools/ffmpeg_filter: drop a redundant check

fg_finalise_bindings() already checks that all filtergraph outputs are
connected.

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

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

diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index ceab58da19..41d96267bc 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -1472,11 +1472,6 @@ fail:
 static int configure_output_filter(FilterGraph *fg, AVFilterGraph *graph,
                                    OutputFilter *ofilter, AVFilterInOut *out)
 {
-    if (!ofilter->ost) {
-        av_log(fg, AV_LOG_FATAL, "Filter %s has an unconnected output\n", ofilter->name);
-        return AVERROR(EINVAL);
-    }
-
     switch (avfilter_pad_get_type(out->filter_ctx->output_pads, out->pad_idx)) {
     case AVMEDIA_TYPE_VIDEO: return configure_output_video_filter(fg, graph, ofilter, out);
     case AVMEDIA_TYPE_AUDIO: return configure_output_audio_filter(fg, graph, ofilter, out);



More information about the ffmpeg-cvslog mailing list