From 1fce361d70296cb9f8828f58bf26cd1ce4e8a47a Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sun, 16 Sep 2012 12:58:49 +0100 Subject: lavfi: replace empty input/output lists with null pointers Signed-off-by: Mans Rullgard --- libavfilter/avfilter.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavfilter/avfilter.c') diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 77b36339a1..29afc86be7 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -302,6 +302,9 @@ static int pad_count(const AVFilterPad *pads) { int count; + if (!pads) + return 0; + for(count = 0; pads->name; count ++) pads ++; return count; } -- cgit v1.2.3