Showing the changes to libavfilter/avfilter.c (1 of 15 files). Show all
Unified · Split
| @@ -302,6 +302,9 @@ static int pad_count(const AVFilterPad *pads) · 301 unmodified lines | ||
| 302 | 302 | { |
| 303 | 303 | int count; |
| 304 | 304 | |
| 305 | + if (!pads) | |
| 306 | + return 0; | |
| 307 | + | |
| 305 | 308 | for(count = 0; pads->name; count ++) pads ++; |
| 306 | 309 | return count; |
| 307 | 310 | } |