Avoids ugly casts when uninitializing. (One could actually avoid allocating this separately if one were willing to expose FFFramePool to those files including link_internal.h.)
Showing the changes to libavfilter/avfilter.c (1 of 5 files). Show all
Unified · Split
| @@ -201,7 +201,7 @@ void avfilter_link_free(AVFilterLink **link) · 200 unmodified lines | ||
| 201 | 201 | li = ff_link_internal(*link); |
| 202 | 202 | |
| 203 | 203 | ff_framequeue_free(&li->fifo); |
| 204 | − ff_frame_pool_uninit((FFFramePool**)&(*link)->frame_pool); | |
| 204 | + ff_frame_pool_uninit(&li->frame_pool); | |
| 205 | 205 | av_channel_layout_uninit(&(*link)->ch_layout); |
| 206 | 206 | |
| 207 | 207 | av_freep(link); |