It will allow adding new fields to it without ABI breaks.
Showing the changes to libavfilter/avfilter.h (1 of 39 files). Show all
Unified · Split
| @@ -235,8 +235,14 @@ void avfilter_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats) · 234 unmodified lines | |||
| 235 | */ | 235 | */ |
| 236 | #endif | 236 | #endif |
| 237 | 237 | ||
| 238 | #if FF_API_AVFILTERPAD_PUBLIC | ||
| 238 | /** | 239 | /** |
| 239 | * A filter pad used for either input or output. | 240 | * A filter pad used for either input or output. |
| 241 | * | ||
| 242 | * @warning this struct will be removed from public API. | ||
| 243 | * users should call avfilter_pad_get_name() and avfilter_pad_get_type() | ||
| 244 | * to access the name and type fields; there should be no need to access | ||
| 245 | * any other fields from outside of libavfilter. | ||
| 240 | */ | 246 | */ |
| 241 | struct AVFilterPad { | 247 | struct AVFilterPad { |
| 242 | /** | 248 | /** |
| @@ -358,6 +364,7 @@ struct AVFilterPad { · 115 unmodified lines | |||
| 358 | */ | 364 | */ |
| 359 | int (*config_props)(AVFilterLink *link); | 365 | int (*config_props)(AVFilterLink *link); |
| 360 | }; | 366 | }; |
| 367 | #endif | ||
| 361 | 368 | ||
| 362 | /** | 369 | /** |
| 363 | * Get the name of an AVFilterPad. | 370 | * Get the name of an AVFilterPad. |