And move the channels field to the public section of the struct.
Showing the changes to libavfilter/avfilter.h (1 of 4 files). Show all
Unified · Split
| @@ -448,6 +448,11 @@ struct AVFilterLink { · 447 unmodified lines | ||
| 448 | 448 | */ |
| 449 | 449 | AVRational time_base; |
| 450 | 450 | |
| 451 | + /** | |
| 452 | + * Number of channels. | |
| 453 | + */ | |
| 454 | + int channels; | |
| 455 | + | |
| 451 | 456 | /***************************************************************** |
| 452 | 457 | * All fields below this line are not part of the public API. They |
| 453 | 458 | * may not be used outside of libavfilter and can be changed and |
| @@ -551,11 +556,6 @@ struct AVFilterLink { · 97 unmodified lines | ||
| 551 | 556 | */ |
| 552 | 557 | int max_samples; |
| 553 | 558 | |
| 554 | − /** | |
| 555 | − * Number of channels. | |
| 556 | − */ | |
| 557 | − int channels; | |
| 558 | − | |
| 559 | 559 | /** |
| 560 | 560 | * Link processing flags. |
| 561 | 561 | */ |
| @@ -647,10 +647,15 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad, · 85 unmodified lines | ||
| 647 | 647 | */ |
| 648 | 648 | void avfilter_link_free(AVFilterLink **link); |
| 649 | 649 | |
| 650 | +#if FF_API_FILTER_GET_SET | |
| 650 | 651 | /** |
| 651 | 652 | * Get the number of channels of a link. |
| 653 | + * @deprecated This accessor used to be provided for ABI compatibility, and | |
| 654 | + * does not need to be used anymore. | |
| 652 | 655 | */ |
| 656 | +attribute_deprecated | |
| 653 | 657 | int avfilter_link_get_channels(AVFilterLink *link); |
| 658 | +#endif | |
| 654 | 659 | |
| 655 | 660 | /** |
| 656 | 661 | * Set the closed field of a link. |