[FFmpeg-devel] [PATCH] ffmpeg_filter: enhance reporting of unconnected pads.
Nicolas George
george at nsup.org
Mon Dec 2 20:19:01 EET 2019
Signed-off-by: Nicolas George <george at nsup.org>
---
fftools/ffmpeg_filter.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 72838de1e2..ff46ffab01 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -269,6 +269,13 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
char *p;
int file_idx = strtol(in->name, &p, 0);
+ av_log(0, 16, "name = %s\n", in->name);
+ if (p == in->name) {
+ av_log(NULL, AV_LOG_FATAL,
+ "Unconnected pad [%s] is not a stream selector in filtergraph description %s.\n",
+ in->name, fg->graph_desc);
+ exit_program(1);
+ }
if (file_idx < 0 || file_idx >= nb_input_files) {
av_log(NULL, AV_LOG_FATAL, "Invalid file index %d in filtergraph description %s.\n",
file_idx, fg->graph_desc);
--
2.24.0
More information about the ffmpeg-devel
mailing list