[FFmpeg-cvslog] fftools/ffmpeg_filter: reject filtergraphs with zero outputs
Anton Khirnov
git at videolan.org
Mon Jun 19 12:11:17 EEST 2023
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Jun 8 21:33:44 2023 +0200| [b1a213ab5d84085ae2b98452daa8feda01881cbf] | committer: Anton Khirnov
fftools/ffmpeg_filter: reject filtergraphs with zero outputs
Nothing useful can be done with them currently.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b1a213ab5d84085ae2b98452daa8feda01881cbf
---
fftools/ffmpeg_filter.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 4f7565e44e..54c7ed1f5c 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -845,6 +845,12 @@ FilterGraph *fg_create(char *graph_desc)
ofilter->name = describe_filter_link(fg, cur, 0);
}
+ if (!fg->nb_outputs) {
+ av_log(fg, AV_LOG_FATAL, "A filtergraph has zero outputs, this is not supported\n");
+ ret = AVERROR(ENOSYS);
+ goto fail;
+ }
+
fail:
avfilter_inout_free(&inputs);
avfilter_inout_free(&outputs);
More information about the ffmpeg-cvslog
mailing list