History

lavfi: add a function for counting elements in AVFilterPad arrays.

The caller needs to know what valid indices can be passed to avfilter_pad_get_name/type.

Anton Khirnov committed 13 years ago

Commit 7e8fe4b1 parent 7cdd7373 files · +10 −3Browse files

Showing the changes to libavfilter/avfilter.h (1 of 3 files). Show all

Unified · Split

libavfilter/avfilter.h+6−0
@@ -350,6 +350,12 @@ struct AVFilterPad { · 349 unmodified lines
350350 };
351351 #endif
352352
353+/**
354+ * Get the number of elements in a NULL-terminated array of AVFilterPads (e.g.
355+ * AVFilter.inputs/outputs).
356+ */
357+int avfilter_pad_count(const AVFilterPad *pads);
358+
353359 /**
354360 * Get the name of an AVFilterPad.
355361 *

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t