summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-09-16 12:58:49 +0100
committerMans Rullgard <mans@mansr.com>2012-09-17 14:35:06 +0100
commit1fce361d70296cb9f8828f58bf26cd1ce4e8a47a (patch)
tree00e96b6d6ea36b266dc7d107bfd506002485ffd9 /libavfilter/avfilter.c
parent2f34021d57b1343bb01b377a4797bef7cbc7be3c (diff)
lavfi: replace empty input/output lists with null pointers
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r--libavfilter/avfilter.c3
1 files changed, 3 insertions, 0 deletions
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;
}