[FFmpeg-devel] [PATCH v2 2/2] fftools: log unconnected filter output label

Marvin Scholz epirat07 at gmail.com
Tue Oct 1 04:20:04 EEST 2024


---
 fftools/ffmpeg_filter.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index ddcd18dd15..b1ca710999 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -1410,7 +1410,9 @@ int fg_finalise_bindings(void)
             OutputFilter *output = fg->outputs[j];
             if (!output->bound) {
                 av_log(fg, AV_LOG_FATAL,
-                       "Filter %s has an unconnected output\n", output->name);
+                       "Filter '%s' has output %d (%s) unconnected\n",
+                       output->name, j,
+                       output->linklabel ? (const char *)output->linklabel : "unlabeled");
                 return AVERROR(EINVAL);
             }
         }
-- 
2.39.3 (Apple Git-146)


More information about the ffmpeg-devel mailing list