And move the channels field to the public section of the struct.
Unified · Split
| @@ -15,6 +15,10 @@ libavutil: 2017-10-21 · 14 unmodified lines | ||
| 15 | 15 | |
| 16 | 16 | API changes, most recent first: |
| 17 | 17 | |
| 18 | +2018-01-xx - xxxxxxx - lavfi 7.11.101 - avfilter.h | |
| 19 | + Deprecate avfilter_link_get_channels(), and make AVFilterLink->channels | |
| 20 | + public. | |
| 21 | + | |
| 18 | 22 | 2017-xx-xx - xxxxxxx - lavr 4.0.0 - avresample.h |
| 19 | 23 | Deprecate the entire library. Merged years ago to provide compatibility |
| 20 | 24 | with Libav, it remained unmaintained by the FFmpeg project and duplicated |
| @@ -183,10 +183,12 @@ void avfilter_link_free(AVFilterLink **link) · 182 unmodified lines | ||
| 183 | 183 | av_freep(link); |
| 184 | 184 | } |
| 185 | 185 | |
| 186 | +#if FF_API_FILTER_GET_SET | |
| 186 | 187 | int avfilter_link_get_channels(AVFilterLink *link) |
| 187 | 188 | { |
| 188 | 189 | return link->channels; |
| 189 | 190 | } |
| 191 | +#endif | |
| 190 | 192 | |
| 191 | 193 | void ff_filter_set_ready(AVFilterContext *filter, unsigned priority) |
| 192 | 194 | { |
| @@ -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. |
| @@ -31,7 +31,7 @@ · 30 unmodified lines | ||
| 31 | 31 | |
| 32 | 32 | #define LIBAVFILTER_VERSION_MAJOR 7 |
| 33 | 33 | #define LIBAVFILTER_VERSION_MINOR 11 |
| 34 | −#define LIBAVFILTER_VERSION_MICRO 100 | |
| 34 | +#define LIBAVFILTER_VERSION_MICRO 101 | |
| 35 | 35 | |
| 36 | 36 | #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \ |
| 37 | 37 | LIBAVFILTER_VERSION_MINOR, \ |
| @@ -55,5 +55,8 @@ · 17 unmodified lines | ||
| 55 | 55 | #ifndef FF_API_LAVR_OPTS |
| 56 | 56 | #define FF_API_LAVR_OPTS (LIBAVFILTER_VERSION_MAJOR < 8) |
| 57 | 57 | #endif |
| 58 | +#ifndef FF_API_FILTER_GET_SET | |
| 59 | +#define FF_API_FILTER_GET_SET (LIBAVFILTER_VERSION_MAJOR < 8) | |
| 60 | +#endif | |
| 58 | 61 | |
| 59 | 62 | #endif /* AVFILTER_VERSION_H */ |