And move the channels field to the public section of the struct.
Showing the changes to libavfilter/avfilter.c (1 of 4 files). Show all
Unified · Split
| @@ -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 | { |