]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/avfilter.c
Merge commit 'b146d74730ab9ec5abede9066f770ad851e45fbc'
[ffmpeg] / libavfilter / avfilter.c
index 3bac29d5ac9db045d84f213d4c90885884542ec2..9f49a8b2b101bf4070cb5d4d6a7f0b5c77824c48 100644 (file)
@@ -436,6 +436,9 @@ static int pad_count(const AVFilterPad *pads)
 {
     int count;
 
+    if (!pads)
+        return 0;
+
     for(count = 0; pads->name; count ++) pads ++;
     return count;
 }